Skip to content

kwanghoon/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

The Mastermind Game to guess numbers in your mind.


GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :load "Main.hs"
[1 of 1] Compiling Main             ( Main.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
How many digits? 
4
Enter your choice: y with nothing, or n with bulls and cows (say, n 1 3)
[0,0,0,0] ? n 0 0
[1,1,1,1] ? n 2 0
[2,2,1,1] ? n 2 1
[2,1,3,1] ? n 2 2
[1,2,3,1] ? n 0 4
[2,1,1,3] ? y
*Main> 

About

A mastermind game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published