Esempio n. 1
0
        public static ChessSet CreateDefaultSet()
        {
            var set = new ChessSet();

            set.whiteHalf = ChessHalfSet.CreateDefaultHalfSet(PieceColor.White);
            set.blackHalf = ChessHalfSet.CreateDefaultHalfSet(PieceColor.Black);
            return(set);
        }
Esempio n. 2
0
        ///////////////////
        // Game starting //
        ///////////////////

        /// <summary>
        /// Start playground for debugging (when launched right
        /// away from unity editor)
        /// </summary>
        private void StartDebug()
        {
            Debug.LogWarning("No startup match provided, creating a " +
                             "debugging match against the computer.");

            var match = new MatchEntity()
            {
                WhitePlayer    = Auth.Player,
                WhitePlayerSet = ChessHalfSet.CreateDefaultHalfSet(
                    PieceColor.White
                    ),

                BlackPlayer    = null,
                BlackPlayerSet = ChessHalfSet.CreateDefaultHalfSet(
                    PieceColor.Black
                    )
            };

            StartRegular(match);
        }