| Crates.io | tictactoe-rust |
| lib.rs | tictactoe-rust |
| version | 0.1.4 |
| created_at | 2019-01-04 22:00:41.942131+00 |
| updated_at | 2019-01-05 00:51:19.92519+00 |
| description | Tictactoe written in rust |
| homepage | |
| repository | https://github.com/alexlai97/tictactoe-rust |
| max_upload_size | |
| id | 105516 |
| size | 55,486 |
makepkg PKGBUILD
cargo build --release
./target/release/tictactoe-rust
just input
start
or
s
in playing page,
X|O|X
.|X|O
O|.|.
the coordinates according to the pieces
(0, 0) | (1, 0) | (2, 0)
(0, 1) | (1, 1) | (2, 1)
(0, 2) | (1, 2) | (2, 2)
so just input
0 0
or
1, 2
Enter the game and input
2 3 bc
Player1's piece will then be ● .
You can also put your own.
2 3 [your own emoji]
Let AI1 fight AI2:
1 3 s
or
(command line) ./tictactoe-rust -m CVC
(stdin) s