This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import product | |
from typing import Iterable, Literal | |
class Board: | |
def __init__(self): | |
self.board = {} | |
def add_piece(self, x, y, piece, axis: Literal["x", "y"] = "x"): | |
"""Add a piece to the board. |
OlderNewer