Esempio n. 1
0
        public static Echiquier Instance()
        {
            if (_me == null)
            {
                _me = new Echiquier();
            }

            return(_me);
        }
Esempio n. 2
0
        private volatile bool stop, startThread, startGame; //Gère les boucles du thread

        public Jeu(Form1 form)
        {
            this.form   = form;
            ech         = Echiquier.Instance();
            msg         = "";
            jouer       = new String[3];
            fin         = rejouer = 0;
            stop        = startGame = false;
            startThread = true;
        }