/// <summary>
        /// Screen for introducing the pieces
        /// </summary>
        /// <param name="parentWindow"></param>
        public TutorialOneScreen(ScreenControl parentWindow)
            : base(parentWindow)
        {
            InitializeComponent();

            tutorialOne = new TutorialOne();
            currentMode = GameMode.Tutorial;

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

            originalColour = Board_Button.Background;

            Board_Click(new object(), new RoutedEventArgs());
        }
Exemple #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;
        }
Exemple #3
0
 public Screen(ScreenControl parentWindow)
 {
     this.parentWindow = parentWindow;
 }