A complete set of instructions for using the demo directory

This commit is contained in:
D. Joe 2022-07-23 11:58:49 -04:00
parent 2d4ef383a0
commit 654a5e22fc
3 changed files with 38 additions and 13 deletions

View File

@ -0,0 +1,18 @@
The `move` directory gives a complete demonstration game, one move per file.
An entire example game repository can then be build from these moves:
```
mkdir format-patch
cd format-patch
git init
git checkout -b main
for i in ../move/*; do \
echo cp $i board \; \
git add board \; \
git commit -m \
\""Applying move #" $(basename $i .md)\" \; \
git format-patch -1; \
done | sh
cd ..
```

16
demo/HOWTO-git.md Normal file
View File

@ -0,0 +1,16 @@
The `move` directory gives a complete demonstration game, one move per file.
An entire example game repository can then be build from these moves:
```
mkdir git
cd git
git init
for i in ../move/*; do \
echo cp $i board \; \
git add board \; \
git commit -m \
\""Applying move #" $(basename $i .md)\"; \
done | sh
cd ..
```

View File

@ -1,16 +1,7 @@
The `move` directory gives a complete demonstration game, one move per file.
An entire example game repository can then be build from these moves:
An entire example game repository can then be build from these moves.
```
mkdir git
cd git
git init
for i in ../move/*; do \
echo cp $i board \; \
git add board \; \
git commit -m \
\""Applying move #" $(basename $i .md)\"; \
done | sh
cd ..
```
To see how one might do this locally, see HOWTO-git.md
See HOWTO-format-patch.md for how one might generate patch files to send to a remote player.