Skip to content

A quick and dirty Mastermind single-player game implementation

License

Notifications You must be signed in to change notification settings

scmx/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind game 🧙‍

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. 🎉

screenshot

Technologies

  • Modern JavaScript (but no transpilation)
  • CSS flexbox
  • Hyperapp - JavaScript micro-framework with virtual DOM, state management

References

Gotchas

  • 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

Challenges for you

  • 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?

About

A quick and dirty Mastermind single-player game implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages