Carlos Cetina wrote on Thu, Jun 20, 2019 11:54 AM UTC:
Fergus:
To help you spot the bug that is in our Colossus game here is part of the program:
Syntax Error on line 673
658 MOVE: r i3-j3
659 postauto2
660 moveindex 146
661 MOVE: B h1-j3
662 postauto1
663 moveindex 147
664 MOVE: q g3-j3
665 postauto2
666 set posvar join "b" join fencode boardflags
667 if >= var #posvar 3
668 say Three Times Repetition! Drawn Game!
669 drawn
670 elseif sub stalemated #K
671 if sub checked #K
672 say Checkmate! Black has won!
673 won:
else:
say Stalemate! The game is drawn.
674 drawn
675 endif
676 elseif >= #nopvc 100
677 say Fifty Moves Without Moving a Pawn or Capturing! Game Drawn!
678 drawn
679 elseif sub checked #K
680 say Check!
681 endif
682 end
I understand the problem is the two points after the "won" word.
Fergus:
To help you spot the bug that is in our Colossus game here is part of the program:
Syntax Error on line 673
I understand the problem is the two points after the "won" word.