Want this course?
Moves Part 3
The next lesson in the Solitaire series is ready. We will continue the exploration of moves. Moves are more complicated than what we’ve done before, so we’ll have to split it into different parts.
In this second part, we refactor the representation of moves until we represent it completely as data. This is called data-driven programming and it has a lot of advantages.
Code is available. The git tag to checkout is solitaire-7. Just execute the following at the command line:
git checkout solitaire-7
Rework the tests you wrote in the exercises from the last 2 lessons to use the new data formats for transfer and flip.
Code is available: lispcast/solitaire
Code for this particular lesson is available at the
solitaire-7 tag .
You can checkout the code in your local repo with this command:
$CMD git clone https://github.com/lispcast/solitaire.git $CMD cd solitaire $CMD git checkout -f solitaire-7