Пример #1
0
 public void NewChallenge()
 {
     //create new pawn mower challenge
     pawnMower = new PawnMower(userPiece, count);
     //update board
     UpdateBoard();
 }
Пример #2
0
        public PawnMowerScreen(ScreenControl parentWindow)
            : base(parentWindow)
        {
            InitializeComponent();

            userPiece = PieceType.R;
            pawnMower = new PawnMower(userPiece, count);

            gameController = new GameController(false, pawnMower.GetPosition());
            gameController.ignoreSuggestion = true;
            BoardArea.Content = gameController.board;

            Dialog.Content = new PawnMowerDialog(this);

            originalColour = Rook_Button.Background;
            Rook_Button.Background = Brushes.SlateGray;
        }