mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
* use `Markdown.Document` as `entityDescription` * add missing spaces in `chunksOf` * fix code in `entities.yaml` (mostly types and few outdated snippets) * add code markdown in craft tutorial * use colours for types and entities - closes #1408 - closes #1409
26 lines
554 B
Bash
Executable File
26 lines
554 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
cd $SCRIPT_DIR/..
|
|
|
|
if command -v stack &> /dev/null; then
|
|
SWARM="stack exec swarm --"
|
|
else
|
|
SWARM="cabal run swarm -O0 --"
|
|
fi
|
|
|
|
for tutorial in $(cat scenarios/Tutorials/00-ORDER.txt | xargs); do
|
|
echo -n "$tutorial"
|
|
$SWARM -i "scenarios/Tutorials/$tutorial" --autoplay --cheat;
|
|
echo -en "\tCONTINUE [Y/n]: "
|
|
read answer;
|
|
case "${answer:0:1}" in
|
|
n|N )
|
|
exit 1
|
|
;;
|
|
* )
|
|
;;
|
|
esac
|
|
done
|