A quick and dirty Mastermind single-player game implementation.
https://scmx.github.io/mastermind
The computer opponent decides on a code and you make guesses as to what the code is. When you've made a guess for all positions on a row, you instantly get the results and move on to the next row unless you just won. 🎉
- Modern JavaScript (but no transpilation)
- CSS flexbox
- Hyperapp - JavaScript micro-framework with virtual DOM, state management
- Bad UI and UX
- No tests
- Big ugly view component
- No JSX, used
h('div', {}, [...])
instead to try it out 😒 - Very cheatable
- Soon to be an intentionally abandoned side project
- Write your own version?
- Write a two-player version?
- Move opponent logic to a server to remove ability to cheat?
- Write an isomorphic game server that can be run either in node or in the browser?