simplified moves, made them algebraic

This commit is contained in:
Karma Riuk
2025-01-31 16:35:09 +01:00
parent 13e3675665
commit 87e8e75c04
5 changed files with 37 additions and 19 deletions

View File

@ -1,6 +1,9 @@
from .piece import Piece
class Knight(Piece):
def letter(self):
return "n"
def legal_moves(self, board: "Board") -> list["Move"]:
ret = []
for dx, dy in [