added sudoku logic, trying to get board to print

This commit is contained in:
kated
2026-06-02 10:25:31 -04:00
parent a9bedb4cde
commit 8b907c3571
11 changed files with 279 additions and 0 deletions

55
border.py Normal file
View File

@@ -0,0 +1,55 @@
class Border:
color = "cyan"
def __init__(self, x, y, char):
self.position = (x, y)
self.character = char
def play_turn(self, game):
pass
def create_borders():
agents = []
left = 1
right = 21
top = 1
bottom = 19
width = 19
height = 10
# outer border
for x in range(left, left + width):
agents.append(Border(x, top, ""))
agents.append(Border(x, top + height, ""))
for y in range(top, top + height + 1):
agents.append(Border(left, y, ""))
agents.append(Border(left + width, y, ""))
# vertical box separators
for y in range(top + 1, top + height):
agents.append(Border(left + 6, y, ""))
agents.append(Border(left + 12, y, ""))
# horizontal box separators
for x in range(left + 1, left + width):
agents.append(Border(x, top + 3, ""))
agents.append(Border(x, top + 6, ""))
return agents