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); }
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(); }
public Game(CodeMaker codeMaker) { this.codeMaker = codeMaker; }