Skip to content

Commit

Permalink
Merge pull request #887 from FreddyFunk/FreddyFunk-gomoko-coordinates
Browse files Browse the repository at this point in the history
gomoko: fix "intelligent move" coordinates
  • Loading branch information
coding-horror authored Aug 9, 2023
2 parents 0be5025 + 4efbb83 commit ec65c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 40_Gomoko/gomoko.bas
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
440 A(I,J)=1
500 REM *** COMPUTER TRIES AN INTELLIGENT MOVE ***
510 FOR E=-1 TO 1: FOR F=-1 TO 1: IF E+F-E*F=0 THEN 590
540 X=I+F: Y=J+F: GOSUB 910
540 X=I+E: Y=J+F: GOSUB 910
570 IF L=0 THEN 590
580 IF A(X,Y)=1 THEN 710
590 NEXT F: NEXT E
Expand Down

0 comments on commit ec65c26

Please sign in to comment.