Skip to content

BZO95/bullsandcows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulls and cows

Bulls and cows (also known as MOO, guess numbers and 1A2B) game implemented in html and javascript.

Play the game here.

The game also includes a simple algorithm that plays the game (PermutationPlayer in game.js). The algorithm keeps a list of all possilbe targets, it chooses one possible targets as guess and eliminates targets that become impossible when the game progresses. This algorithm is not optimal, but it is faster than the more optimal solutions and not so much worse off in terms of average steps to reach the answer.

It would be interesting to implement an algorithm that plays the game like a human. TBD

Related

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors