Bulls and Cows is an old code-breaking mind or paper and pencil game for two or more players, predating the commercially marketed board game Mastermind.
- Open Terminal
- Navigate to where you downloaded these files and locate main.cpp
- Using
gcc
org++
compiler (install with:sudo apt-get install build-essential
)sudo g++ -o main main.cpp
(creates an executable named main)
- Type:
./main
- You can set a new isogram in
FBullCowGame::Reset()
(recompile after making changes)
,-'`\
_,"' j
__....+ / .
,-'" / ; `-._.'.
/ ( ,' .'
| _. \ \ ---._ `-.
,| , _.' Y \ `- ,' \ `.`.
l' \ ,'._,\ `. . / ,--. l
.,- `._ | | | \ _ l .
/ `"--' / .' ``. | )
.\ , | . \ `. '
`. . | '._ __ ;. \'
`-..--------...' \ `' `-"'. \
`......___ `._ | \
/` `.. | .
/| `-. | L
/ | \ `._ . |
,' |,-"-. . . `. / |
,' | ' \ | `. / |
,' /| \ . | . / |
,' / | \ . + \ ,' .'
. . | \ | \ \_,' / j
| | L `| . ` ,' '
| _. | \ / | . .' ,'
| / `| \ . | / | ,' .'
| ,-..\ -. , | / |,.' ,'
`. |___,` / `. /`. ' | .'
'-`-' j ` /."7-..../| ,`-'
| .' / _/_| .
`, `"'/"' \ `.
`, '. `. |
__,.-' `. \' |
/_,-'\ ,' | _.
|___.---. ,-' .-':,-"`\,' .
L,.--"' '-' | ,' `-.\
`.