Beispiel #1
0
        public Game(byte size = 4, byte baseValue = 2, ushort successValue = 2048) : base(2)
        {
            if (size < 3)
            {
                throw new ArgumentException("Size can't be smaller than 3");
            }

            this.size         = size;
            this.baseValue    = baseValue;
            this.successValue = successValue;

            score = new GameScore();

            if (!Load())
            {
                Restart();
            }
        }