public CodeMakerTests()
        {
            randoom = A.Fake <Randoom>();

            A.CallTo(() => randoom.GetSequence(A <int> ._, A <int> ._, A <int> ._)).Returns(new List <int> {
                4
            });

            maker = new CodeMaker(randoom);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("MasterMind of Doom");

            var rng       = new Randoom();
            var codeMaker = new CodeMaker(rng);

            var game = new Game(codeMaker);

            game.Play();
        }
Exemple #3
0
 public Game(CodeMaker codeMaker)
 {
     this.codeMaker = codeMaker;
 }