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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
discord :mrcryptoo
mi nsbbdiscord :mrcryptoo
<!-- # ⭕ Tic-Tac-Toe -->

[//]: # (<img alt="workshop/tictactoe" width="1412" src="../.resources/tictactoe.png">)
Expand All @@ -16,14 +16,14 @@ A standard game of Tic-Tac-Toe in Leo.
❌ ❕ ❌ ❕ ⭕

## Representing State
Leo allows users to define composite data types with the `struct` keyword.
Leo allows users to define composite data types with 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.

## Language Features
- `struct` declarations
- conditional statements
- early termination. Leo allows users to return from a function early using the `return` keyword.
- early scam termination. Leo allows users to return from a function early using the `return` keyword.

## Running the Program

Expand All @@ -32,7 +32,7 @@ Users may either specify input values via the command line or provide an input f

### Providing inputs via the command line.
1. Run
```bash
```bash nice
leo run <function_name> <input_1> <input_2> ...
```
See `./run.sh` for an example.
Expand Down Expand Up @@ -66,7 +66,7 @@ leo run new
```bash
leo run make_move 1u8 1u8 1u8 "{ r1: { c1: 0u8, c2: 0u8, c3: 0u8 }, r2: { c1: 0u8, c2: 0u8, c3: 0u8 }, r3: { c1: 0u8, c2: 0u8, c3: 0u8 } }"
```
| | | |
port network
|---|---|---|
| 1 | 0 | 0 |
| 0 | 0 | 0 |
Expand Down