Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5d9fe44b8c
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (19 sloc) 0.9 kB

Puzzles

Setup

First, fork the repository on Github, then clone your fork on your local machine:

git clone git@github.com:<github-handle>/puzzles.git

You should create a branch to solve a puzzle:

git checkout -b <github-handle>_<puzzle-name>

When you're ready to start, erase the TODO comment in the puzzle method and make a commit saying 'Started working on <puzzle-name>.', like this:

git commit -am 'Started working on my_turn_in.'

You can now start coding! To validate your solution, you can run the tests for an individual puzzle using the test suite. To test the Snake my_turn_in puzzle, for example, run:

ruby ./test/puzzles/snake/my_turn_in_test.rb

Once you've finished solving a puzzle, you can push your solution to your repository like this:

git push origin <branch-name>

Puzzles can be found in the files contained in the lib/puzzles directory.

Jump to Line
Something went wrong with that request. Please try again.