Пример #1
0
        public Player()
        {
            variants = rnd.Next(1, 3);
            switch (variants)
            {
            case 1: VARIANTS = VARIANTS.Rock; break;

            case 2: VARIANTS = VARIANTS.Scissors; break;

            case 3: VARIANTS = VARIANTS.Paper; break;
            }

            name = "Bot";
        }
Пример #2
0
 public Player(VARIANTS variants, string name)
 {
     this.name     = name;
     this.VARIANTS = variants;
 }