Exemplo n.º 1
0
        public GoGame(GoGameInfo info)
        {
            GameInfo   = info;
            Clock      = new GoClock(GameInfo.TimeSettings);
            Tree       = new GoGameTree();
            Board      = new GoBoard(GameInfo.Size, GameInfo.Handicap);
            Turns      = new List <GoTurn>();
            KoPoint    = null;
            IsGameOver = false;
            GameRule   = RulesType.normal;
            NumberOfStonesToCapture = 5;

            m_currentTurn = 0;
            m_colorToMove = GameInfo.Handicap < 2 ? GoColor.BLACK : GoColor.WHITE;
        }
Exemplo n.º 2
0
        public GoGame(GoGameInfo info)
        {
            GameInfo = info;
            Clock = new GoClock(GameInfo.TimeSettings);
            Tree = new GoGameTree();
            Board = new GoBoard(GameInfo.Size, GameInfo.Handicap);
            Turns = new List<GoTurn>();
            KoPoint = null;
            IsGameOver = false;
            GameRule = RulesType.normal;
            NumberOfStonesToCapture = 5;

            m_currentTurn = 0;
            m_colorToMove = GameInfo.Handicap < 2 ? GoColor.BLACK : GoColor.WHITE;
        }