Browse Source

Logging added

master
Gregory Rudolph 4 years ago
parent
commit
9693333236
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      chess.go

1
chess.go

@ -82,6 +82,7 @@ func showBoard(m chat1.MsgSummary, g *Game) { @@ -82,6 +82,7 @@ func showBoard(m chat1.MsgSummary, g *Game) {
if err := pos.UnmarshalText([]byte(fenStr)); err != nil {
log.LogError(fmt.Sprintf("Error in ShowBoard pos.UnmasrhalText: %+v\n", err))
}
log.LogInfo("Trying to check Moves History")
if len(g.Game.MovesHistory()) != 0 {
// write board SVG to file
yellow := color.RGBA{255, 255, 0, 1}

Loading…
Cancel
Save