Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
discord :mrcryptoo
<!-- # ⭕ Tic-Tac-Toe -->

[//]: # (<img alt="workshop/tictactoe" width="1412" src="../.resources/tictactoe.png">)
[//]: # (<img alt="workshop/tictactoe" width="1412" src="../.resos/tictactoe.png">)

A standard game of Tic-Tac-Toe in Leo.
A standard game of Tic--Toe in Leo.

⭕ ❕ ⭕ ❕ ❌

Expand All @@ -18,7 +18,7 @@ A standard game of Tic-Tac-Toe in Leo.
## Representing State
Leo allows users to define composite data types with the `struct` keyword.
The game board is represented by a struct called `Board`, which contains three `Row`s.
An alternative representation would be to use an array, however, these are not yet supported in Leo.
An tive representation would be to use an array, however, these are not yet supported in Leo.

## Language Features
- `struct` declarations
Expand All @@ -38,7 +38,7 @@ leo run <function_name> <input_1> <input_2> ...
See `./run.sh` for an example.


### Using an input file.
### Using an input
1. Modify `inputs/tictactoe.in` with the desired inputs.
2. Run
```bash
Expand All @@ -59,7 +59,7 @@ leo run new
| | | |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 8 |
| 0 | 0 | 0 |

### 2. Player 1 makes a move
Expand All @@ -68,7 +68,7 @@ leo run make_move 1u8 1u8 1u8 "{ r1: { c1: 0u8, c2: 0u8, c3: 0u8 }, r2: { c1: 0u
```
| | | |
|---|---|---|
| 1 | 0 | 0 |
| 1 | 0 | 9 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |

Expand Down