From a1c212cdeb970ab60c3c673f0197f6fe5c541012 Mon Sep 17 00:00:00 2001 From: "D. Joe" Date: Sat, 23 Jul 2022 12:04:56 -0400 Subject: [PATCH] Draft instructions for playing in a new, match-specific repository --- games/HOWTO.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 games/HOWTO.md diff --git a/games/HOWTO.md b/games/HOWTO.md new file mode 100644 index 0000000..6ea242c --- /dev/null +++ b/games/HOWTO.md @@ -0,0 +1,51 @@ +Clone the game repository + +``` +git clone https://tildegit.org/deejoe/format-patch-ttt +``` + +Move into the repository + +``` +cd format-patch-ttt +``` +Move into the `game` subdirectory + +``` +cd game +``` + +Create a new directory for each name. + +The new directory can be called anything, but using the date is not a bad +idea. + +Initialize a new repository specifically for this game. + +Then, bring in a fresh copy of a blank board file. + +Add and commit the blank board file. + +Edit the board with your move. + +Add and commit the board with your move. + +Create a patch with your move. + +``` +mkdir ttt-YYYY-MM-DD +cd ttt-YYYY-MM-DD +git init +cp ../board.md . +git add board.md +git commit -m "A blank board to start" +# edit the board to include your move +git add board.md +git commit -m "First move by NAME as X" +git format-patch -1 +``` + +Finally, send the resulting patch file to your opponent, for instance, as an +email attachment. + +Good luck!