示例#1
0
文件: Game.cs 项目: Valentin889/echec
        //constructeur
        public Game(frmGame form)
        {
            iNumerberPiece       = 32;
            iNumberPiecePerColor = iNumerberPiece / 2;
            lstPlayer            = new List <Player>();
            dicWhitePiece        = new Dictionary <string, Piece>();
            dicBlackPiece        = new Dictionary <string, Piece>();


            Display   = form;
            strColor1 = "White";
            strColor2 = "Black";
            tabPiece  = new Piece[8][];
            for (int i = 0; i < tabPiece.Length; i++)
            {
                tabPiece[i] = new Piece[8];
            }
            iPawnChange = 0;
        }
示例#2
0
        private void btnJouer_Click(object sender, EventArgs e)
        {
            frmGame form = new frmGame(tbxNom1.Text, tbxNom2.Text, rbtnYes.Checked);

            form.Show();
        }