reading-notes

Class Notes

green = (0, 1, 0) for i in range (8): grid[i][i] = green (or whatever color you want)

plt.imshow(grid) #pyplot that is used for render

Lab Setup

class ChessBoard: def init(self) self.grid = np.ones((8, 8, 3)) #this gets the grid but not the alternating color squares # TODO: Find a way to make alternating black / white squares on entire board

def add_red(self, row, col): pass

def add_blue(self, row, col): pass

def render(self): pass

def is_under_attack(self): pass