예제 #1
0
        void setGameOverKeyState()
        {
            actions.Remove(Keys.Left);
            actions.Remove(Keys.Right);
            actions.Remove(Keys.Space);

            actions.Set(Keys.N, () =>
            {
                // starts a new game
                board.Clear();
                Winner          = Winner.None;
                NewChipNeeded   = true;
                desiredKeyState = KeyState.InGame;
            });
            currentKeyState = KeyState.GameOver;
        }