Esempio n. 1
0
        public void ShouldShowGameStartMessage()
        {
            StubBoardIsConquered();

            _subject.Start();

            A.CallTo(() => _consoleWrapperDouble.Print(
                         "Shot between A0 and J9 to start a new game! Two Destroyers (4 masts) and a Battleship (5 masts) are already positioned."))
            .MustHaveHappenedOnceExactly();
        }
Esempio n. 2
0
        private static void Main()
        {
            var game = new ConsoleGame();

            game.Start();

            while (!game.IsGameOver)
            {
                game.GetInput();
                game.MakeTurn();
            }
        }