v0.1.1 api with fiber added, basic functionlity tested

This commit is contained in:
2025-10-27 05:16:08 -04:00
parent 8ba4357920
commit b98ea83012
9 changed files with 941 additions and 8 deletions

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,