public void NewChallenge() { //create new pawn mower challenge pawnMower = new PawnMower(userPiece, count); //update board UpdateBoard(); }
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; }