This is a simple mastermind game that I use for labs.
It consists of three components:
-
mastermind
is the logic of the game itself. The interface is defined inlib/mastermind.ex
, and the implementation's in the directory below. -
console
is a console-based interface to the game. To play it,$ cd console $ mix run -e MmConsole.play
-
web
is a SPA web app that uses the game logic.$ cd web $ mix deps.get $ ( cd assets; npm install ) $ mix phx.server
Drag balls from the column on the left into positions on the board.