(Reversi or Othello)
;
:
nn (n 4n26):
44 1 : 2 2 abcd
1. 2.
2 :
1 8 () ;
2
2 ca cb3:
3. c a 4.
4 b a 5 :
5. ba 6. ac
a c 6 :
:1) ; 2);3) ;4) 3 ;
( 10) X O ; O player has no valid move.( )
: O player wins., X player wins. Draw!. Invalid move.
( ) 7 : a a 2 2
7.
: 2 direction
() , (:Courier New):
() ();
Enter the board dimension: 4 Computer plays (X/O): X
abcd a. b.OX. c.XO. d.
Computer places X at ab. Abcd
a.X.. b.XX. c.XO. d.
Enter move for O (RowCol): aa abcd
aOX.. b.OX. c.XO. d.
Computer places X at ba. abcd
aOX.. bXXX. c.XO. d.
Enter move for O (RowCol): ac abcd
aOOO. bXXO. c.XO. d.
Computer places X at ad. abcd
aOOOX bXXX. c.XO. d.
Enter move for O (RowCol): ca abcd
aOOOX bOOX.
cOOO. d.
Computer places X at da. abcd
aOOOX bOOX. cOXO. dX
Enter move for O (RowCol): dc abcd
aOOOX bOOX. cOOO. dX.O.
X player has no valid move. Enter move for O (RowCol): cd abcd
aOOOX bOOO. cOOOO dX.O.
Both players have no valid move. Game over.
X : O = 2 : 11 O player wins.
Enter the board dimension: 6
Computer plays (X/O) : O
abcdef a b c..OX.. d..XO.. e f
Enter move for X (RowCol): cb abcdef a b c.XXX.. d..XO.. e f
Computer places O at bb. abcdef a b.O. c.XOX.. d..XO.. e f
Enter move for X (RowCol): aa Invalid move.
Game over.
O player wins.
Reversi.csv ():
1TypeScript 2 30%
3 70%
n 10% n 20%
n 20%
n 20%
Reviews
There are no reviews yet.