v0.1.1 api with fiber added, basic functionlity tested

This commit is contained in:
lixen committed 2025-10-27 05:16:08 -04:00
1 parent 0a834f648c
commit 252efca330
9 files changed
+941 -8

No files matched your search

+4
View File
@@ -71,6 +71,10 @@ func (g *Game) NextPlayer() *core.Player {
return g.players[g.NextTurn()]
}
func (g *Game) GetPlayer(color core.Color) *core.Player {
return g.players[color]
}
func (g *Game) AddSnapshot(fen string, move string, nextTurn core.Color) {
g.snapshots = append(g.snapshots, Snapshot{
FEN: fen,