generated from mwc/project_game
added sudoku logic, trying to get board to print
This commit is contained in:
25
cell.py
Normal file
25
cell.py
Normal file
@@ -0,0 +1,25 @@
|
||||
class Cell:
|
||||
|
||||
color = "white"
|
||||
|
||||
def __init__(self, row, col, value):
|
||||
|
||||
self.row = row
|
||||
self.col = col
|
||||
self.value = value
|
||||
|
||||
board_x = 4
|
||||
board_y = 2
|
||||
|
||||
board_x = 3
|
||||
board_y = 2
|
||||
|
||||
x = board_x + (col * 2)
|
||||
y = board_y + (row * 2)
|
||||
|
||||
self.position = (x, y)
|
||||
|
||||
self.character = str(value)
|
||||
|
||||
def play_turn(self, game):
|
||||
pass
|
||||
Reference in New Issue
Block a user