Tic Tac Toe
Learn Tic Tac Toe rules.
Make a Game Session
$ git checkout -b Game-Session $ mkdir "Playground/Multiplayer/TicTacToe/YourName vs OpponentsName" $ cp -i "Games/Multiplayer/TicTacToe.md" "Playground/Multiplayer/TicTacToe/YourName vs OpponentsName/Game Number.md" $ git add . $ git commit -a -m "Game start" $ git push -u origin Game-Session
Play the Game
$ git checkout Game-Session # Places X and saves the file $ git add . $ git commit -a -m "Cross Turn Number" $ git push -u origin Game-Session$ git checkout -b Game-Session $ git pull origin Game-Session # Places O and saves the file $ git add . $ git commit -a -m "Circle Turn Number" $ git push -u origin Game-session$ git checkout Game-Session $ git pull origin Game-Session # Takes a turn and saves the file $ git add . $ git commit -a -m "Cross/Circle Turn Number" $ git push -u origin Game-Session
FULL EXAMPLE:
Last updated