mirror of
https://github.com/nelsbrock/dev-tictactoe.git
synced 2026-08-14 20:56:49 +02:00
fix swapped x and y coordinates
This commit is contained in:
@@ -22,13 +22,13 @@ After loading the module, player X can write grid coordinates
|
||||
(ranging from 1 to 3, format `XY`) to `/dev/tictactoe` to make their first move:
|
||||
|
||||
```console
|
||||
# echo 12 > /dev/tictactoe
|
||||
# echo 22 > /dev/tictactoe
|
||||
```
|
||||
|
||||
After player X has made their move, player O can do the same:
|
||||
|
||||
```console
|
||||
# echo 22 > /dev/tictactoe
|
||||
# echo 13 > /dev/tictactoe
|
||||
```
|
||||
|
||||
To inspect the current state of the game, simply read from `/dev/tictactoe`:
|
||||
@@ -39,9 +39,9 @@ To inspect the current state of the game, simply read from `/dev/tictactoe`:
|
||||
|
||||
```
|
||||
#####
|
||||
# X #
|
||||
# O #
|
||||
# #
|
||||
# X #
|
||||
#O #
|
||||
#####
|
||||
|
||||
It's X's turn!
|
||||
|
||||
Reference in New Issue
Block a user