示例#1
0
        public void TestGame()
        {
            Card tiger = new Card("Tiger", new List <Point> {
                new Point(0, 2), new Point(0, -1)
            }, PlayerColor.BLUE);
            Card crab = new Card("Crab", new List <Point> {
                new Point(-2, 0), new Point(0, 1), new Point(2, 0)
            }, PlayerColor.BLUE);
            Card monkey = new Card("Monkey", new List <Point> {
                new Point(-1, 1), new Point(-1, -1), new Point(1, 1), new Point(1, -1)
            }, PlayerColor.BLUE);
            Card crane = new Card("Crane", new List <Point> {
                new Point(-1, -1), new Point(0, 1), new Point(1, -1)
            }, PlayerColor.BLUE);
            Card dragon = new Card("Dragon", new List <Point> {
                new Point(-2, 1), new Point(-1, -1), new Point(2, 1), new Point(1, -1)
            }, PlayerColor.RED);

            BoardWindow board = new BoardWindow(new List <Card> {
                tiger, crab
            }, new List <Card> {
                monkey, crane
            }, dragon);

            board.Show();
        }
示例#2
0
        private void startButton_Click(object sender, RoutedEventArgs e)
        {
            BoardWindow boardWindow = new BoardWindow(redCardListBox.Items, blueCardListBox.Items, passCardListBox.Items.GetItemAt(0));

            boardWindow.Show();
        }