Skip to content

Get all the possible answers for Bulls and Cows game, based on the history of guesses in one round.

License

Notifications You must be signed in to change notification settings

Wixty/bulls-cows-solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulls and Cows Solver

Get all the possible answers for Bulls and Cows game, based on the history of guesses in one round.

Web based example can be launched from https://frank-deng.github.io/bulls-cows-solver/index.html.

Usage

Node

var bulls_cows_solver = require('bulls-cows-solver');
var result = bulls_cows_solver([
	{guess:'1234', result:'1A3B'},
	{guess:'2134', result:'2A2B'},
]);

Brwoser

<script type='text/javascript' src='bulls-cows-solver.js'></script>
<script type='text/javascript'>
	var result = bulls_cows_solver([
		{guess:'1234', result:'1A3B'},
		{guess:'2134', result:'2A2B'},
	]);
</script>

About

Get all the possible answers for Bulls and Cows game, based on the history of guesses in one round.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.0%
  • JavaScript 34.0%