示例#1
0
        public override string GenerateRoshambo()
        {
            rand = new Random();
            int random = rand.Next(0, 3);

            RoshamboValue value = new RoshamboValue(random);

            return(value.GenerateValue());

            //switch (random)
            //{
            //    case 0:
            //        return Roshambo.Rock.ToString();
            //        break;
            //    case 1:
            //        return Roshambo.Paper;
            //        break;
            //    case 2:
            //        return Roshambo.Scissors;
            //        break;
            //    default:
            //        return Roshambo.Rock;
            //        break;
            //}
        }
示例#2
0
        public override string GenerateRoshambo()
        {
            RoshamboValue value = new RoshamboValue(0);

            return(value.GenerateValue());
        }