v0.1.1 api with fiber added, basic functionlity tested
This commit is contained in:
1 parent
0a834f648c
commit
252efca330
9 files changed
+941
-8
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user