コード例 #1
0
        public TwoPlayerGame(string PlayerOneInput, string PlayerTwoInput)
        {
            this.PlayerOneInput = PlayerOneInput;
            this.PlayerTwoInput = PlayerTwoInput;
            InitializeComponent();
            hs = new Highscore(player1score, player2score);

            grid = new MemoryGrid(GameGrid, NR_OF_COLS, NR_OF_ROWS, hs, /*ni, */ false, this);
            WriteNames();
        }
コード例 #2
0
        public OnePlayerGame(string PlayerInput)
        {
            PlayerInputGetrimt = PlayerInput.Replace(" ", string.Empty);
            this.PlayerInput   = PlayerInputGetrimt;

            InitializeComponent();

            hs   = new Highscore(highscoretb, currentscoretb, PlayerInputGetrimt);
            grid = new MemoryGrid(GameGrid, NR_OF_COLS, NR_OF_ROWS, hs, true);

            PlayerNameInput();
        }