-3

I am created some chess program and want to detect who have move white or black. Which objects stores information which pieces will move Board, GameNode?

import chess.pgn
import chess.uci

# ??? Board().is_white_move()?
# ??? GameNode.is_white_move()?

I analysed code but not found good explanation.

Chameleon
  • 9,722
  • 16
  • 65
  • 127

1 Answers1

3

I assume that you are looking at python-chess.

There's a turn attribute of the Board instance.

Mariy
  • 5,746
  • 4
  • 40
  • 57