Hangman

Make a Game Session

  • Navigate Git Bash terminal into your Git-Started folder.

  • Write commands:

    $ git checkout -b Game-Session
    $ mkdir "Playground/Multiplayer/Hangman/YourName vs OpponentsName"
    $ cp -i "Games/Multiplayer/Hangman.md" "Playground/Multiplayer/Hangman/YourName vs OpponentsName/Game Number.md"
    $ git add .
    $ git commit -a -m "Game start"
    $ git push -u origin Game-Session

Play the Game

  • Navigate through the Playground folder and find your Game Number.md file.

  • Open the file by right-clicking and choosing to open with a text editor. I highly recommend Notepad++ for this purpose.

  • First players FIRST turn:

    $ git checkout Game-Session
    # Makes up a word and updates the "_" characters then saves the file
    $ git add .
    $ git commit -a -m "Gamemaster Turn Number"
    $ git push -u origin Game-Session
  • Second players FIRST turn:

    $ git checkout -b Game-Session
    $ git pull origin Game-Session
    # Takes a guess by writing down a letter next to "Guessed by now: " then saves the file
    $ git add .
    $ git commit -a -m "Guesser Turn Number"
    $ git push -u origin Game-session
  • Other turns:

    $ git checkout Game-Session
    $ git pull origin Game-Session
    # Takes a turn and saves the file
    $ git add .
    $ git commit -a -m "Gamemaster/Guesser Turn Number"
    $ git push -u origin Game-Session

FULL EXAMPLE:

  • Joseph (gamemaster) and Mathew (guesser) are playing against each other their first game.

  • Josephs FIRST turn:

  • Mathews FIRST turn:

  • Josephs SECOND turn:

  • Mathews SECOND turn:

  • And so on.

Last updated

Was this helpful?