format-patch-ttt/demo/HOWTO-format-patch.md

399 B

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 ..