Worked great until I typed something other than a legal move, and then it got stuck not accepting any input. Maybe use some ANSI to clear the screen between moves, and filter the input.
A downloadable game
This game is an entry for Lisp Game Jam 2019.
Play online here
The objective of the game is to put all the sheep(S) inside the pen(.) moving the dog(D) as few times as possible.
Click download now to get access to the following files: