Beispiel #1
0
        internal void Lose()
        {
            end             = true;
            CW.Status.Text += "L ";
            VictoryWindow w = new VictoryWindow(this);

            w.ResultText.Text = "Game Over!";
            w.Title           = "You lost!";
            w.Show();
        }
Beispiel #2
0
        private void Win()
        {
            end = true;
            Forbidden.Add(lastMove);
            Write($"Move added:\n{lastMove.Board[0, 2]} {lastMove.Board[1, 2]} {lastMove.Board[2, 2]}\n{lastMove.Board[0, 1]} {lastMove.Board[1, 1]} {lastMove.Board[2, 1]}\n{lastMove.Board[0, 0]} {lastMove.Board[1, 0]} {lastMove.Board[2, 0]}");
            CW.Status.Text += "W ";
            VictoryWindow w = new VictoryWindow(this);

            w.ResultText.Text = "Victory Royale!";
            w.Title           = "You won!";
            w.Show();
        }