Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brinza888 authored Oct 22, 2021
1 parent 5656447 commit 30ed0fb
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,30 @@ git clone https://github.com/BrinzaBezrukoff/tictactoe.git
```
cd tictactoe
```
3. Compile source:
```
gcc main.c tictactoe.c minimax.c -o tictactoe
```
3. Compile source with make:
```
make
```
or with gcc:
```
gcc main.c tictactoe.c minimax.c -o tictactoe
```
4. Run binary:
```
./tictactoe
```
## Play
X is human, O is AI.


1. Choose who will be make turn first. Type X or O and press Enter key.
2. When it is your time to make turn, type 2 numbers: row and column indices of cell, where you want to place X.
![image](https://user-images.githubusercontent.com/29017599/138512021-00aa33b2-c18c-4c30-8938-d2b4b989de8e.png)
* Human playing for X
* AI playing for O
2. Choose level mode for AI (this feature in develoment, some modes work incorrect):
![image](https://user-images.githubusercontent.com/29017599/138511830-b7aa34fc-f540-44e7-8246-3402b464d4f4.png)
* Easy (E)
* Medium (M)
* Hard (H)
* eXpert (X)
3. When it is your time to make turn, type 2 numbers: row and column indices of cell, where you want to place X.
![image](https://user-images.githubusercontent.com/29017599/138511117-e12dba88-b23c-44d6-87a8-3afce50d9b97.png)

0 comments on commit 30ed0fb

Please sign in to comment.