public void WhenRecursivelyGivenInputList_ThenItShouldReferenceEveryItemInThatListOnlyOnce() { // Arrange var input = new[] { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '}; var player = new RandomComputerPlayer(); // Act var result = new List<int>(); for (var i = 0; i < input.Length; i++) { result.Add(player.MakeMove(input)); } // Assert result.Sort(); var expected = new List<int>() {0, 1, 2, 3, 4, 5, 6, 7, 8}; }
static void Main(string[] args) { var firstPlayer = new RandomComputerPlayer {Name = "Fred", Banter = "Fred makes his move..."}; var secondPlayer = new RandomComputerPlayer {Name = "Joe", Banter = "Joe strikes back..."}; new Game(new OutputAdapter(new ConsoleOutputWriter()), new TicTacToeEngine(), firstPlayer, secondPlayer, 1000).Start(); }