You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move History is a convenient API for accessing aligned positions, moves, and comments. Move
663
-
History is useful when trying to understand detailed information about a game. Below is an
662
+
Moves is a convenient API for accessing aligned positions, moves, and comments. Moves is useful when trying to understand detailed information about a game. Below is an
664
663
example showing how to see which side castled first.
665
664
666
665
```go
@@ -685,9 +684,9 @@ func main() {
685
684
}
686
685
game:= chess.NewGame(pgn)
687
686
color:= chess.NoColor
688
-
for_, mh:=range game.MoveHistory() {
689
-
if mh.Move.HasTag(chess.KingSideCastle) || mh.Move.HasTag(chess.QueenSideCastle) {
690
-
color = mh.PrePosition.Turn()
687
+
for_, mh:=range game.Moves() {
688
+
if mh.HasTag(chess.KingSideCastle) || mh.HasTag(chess.QueenSideCastle) {
0 commit comments