Beispiel #1
0
        public void CheckIfListContains3StraightInARow()
        {
            var moveList   = new MoveList();
            var winChecker = new WinChecker();

            moveList.AddMove(new Move(1, 2));
            moveList.AddMove(new Move(2, 2));
            moveList.AddMove(new Move(1, 1));
            moveList.AddMove(new Move(1, 3));

            var listOfX = winChecker.AddXCoordinatesIntoSortedList(moveList.Moves);
            var result  = winChecker.ContainsStraightLine(listOfX);

            Assert.True(result);
        }