Skip to content

Commit

Permalink
Add chef version
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Oct 15, 2024
1 parent d396f8d commit 8ebbb89
Show file tree
Hide file tree
Showing 5 changed files with 635 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will run stuff on the chef version of tictactoe.

name: chef

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tictactoe_chef
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
cargo install --locked --git 'https://github.com/JanEricNitschke/rchef'
- name: Run
run: |
rchef tictactoe.chef < input1.txt
rchef tictactoe.chef < input2.txt
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,15 @@ ick -Ofb tictactoe.i
./tictactoe
```

## TicTacToe-Chef

Version in [Chef](https://www.dangermouse.net/esoteric/chef.html), specifically using [rchef](https://github.com/booleancoercion/rchef).

Run using:
```
rchef tictactoe.chef
```

## TicTacToe-scratch
Very simple two player tictactoe game with Scratch.

Expand Down
7 changes: 7 additions & 0 deletions tictactoe_chef/input1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
0
1
2
3
4
5
6
9 changes: 9 additions & 0 deletions tictactoe_chef/input2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
0
4
8
1
7
6
2
5
3
Loading

0 comments on commit 8ebbb89

Please sign in to comment.