21 lines
428 B
Python
21 lines
428 B
Python
import pygame
|
|
from Constants import SQUARE_SIZE, GREEN
|
|
import Board
|
|
|
|
class Game:
|
|
def __init__(self, win):
|
|
self._init()
|
|
self.win = win
|
|
|
|
def _init(self):
|
|
self.selected = None
|
|
self.board = Board()
|
|
self.turn = GREEN
|
|
self.valid_moves = {}
|
|
|
|
def update(self):
|
|
self.board.draw(self.win)
|
|
self.draw_valid_moves(self.valid_moves)
|
|
pygame.display.update()
|
|
|