+ candidates = self.board.getMoveCandidates(board)
+ if self.debug:
+ comment = str(board)
+ comment += "Candidates: " + str(len(candidates))
+
+ if not candidates:
+ self.debug_comment += "No candidates."
+ return
+
+ move = candidates[0]
+ move.comment = comment
+ self.moves.append(move)
+ self.board.addMove(move)