gomoko: fix "intelligent move" coordinates

This commit is contained in:
Frederic L
2023-08-09 21:36:10 +02:00
committed by GitHub
parent 0be50254c3
commit 4efbb83d4f

View File

@@ -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