Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ataxx/pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def from_board(self, board):
if board.start_fen() != ataxx.FEN_STARTPOS:
self.headers["FEN"] = board.start_fen()
self.headers["SetUp"] = "1"
return node

def set_white(self, w):
self.headers["White"] = w
Expand Down Expand Up @@ -200,7 +201,7 @@ def recurse(self, children=[], depth=1):
string += ""

# Print new move number
if depth%2 == 1:
if depth&1 == 1:
string += F"{(depth+1)//2}. "
# Print move number if we just left a comment or variation
else:
Expand Down