This game is a Git version of Chutes and Ladders that gives you an opportunity
to practice using reset --hard to move the Git HEAD back and forth along a
single branch.
- Fork and clone this repository
- Run
./new-gameto begin the game - Roll the virtual dice by running
./roll, then move the current Git HEAD to the indicated commit. Repeat until you're on the 100th space. - When you get to the 100th space and roll, you've won! Commit
resultsand push it up to your remote.
Hints:
- To find the Git hash of the space you want to move to you'll need to use
git log ..list- You can use
j/kandControl+d/Control+uto scroll Git history - Press
qto quitgit log
- You can use
- You can use
git reflogto see previous commits you've been on - You can restart the game by running
.new-gameagain.