Skip to content

Commit

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

name: shakespeare

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

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tictactoe_shakespeare
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install shakespearlang
- name: Run
run: |
shakespeare run tictactoe.spl < input1.txt
shakespeare run tictactoe.spl < 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-Shakespeare

Version using [Shakespeare](https://en.wikipedia.org/wiki/Shakespeare_Programming_Language), specifically [shakespearelang](https://shakespearelang.com/1.0/).

Run with:
```
shakespeare run tictactoe.spl
```

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

Expand Down
7 changes: 7 additions & 0 deletions tictactoe_shakespeare/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_shakespeare/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 216c7fa

Please sign in to comment.