예제 #1
0
 public void CreateMoveList()
 {
     spock          = new Spock();
     lizard         = new Lizard();
     scissors       = new Scissors();
     paper          = new Paper();
     rock           = new Rock();
     gestureOptions = new List <Gestures>()
     {
         rock, paper, scissors, lizard, spock
     };
 }
예제 #2
0
        //constructor
        public Player()
        {
            totalWins = 0;
            gestures  = new List <Gesture>();

            Rock     rock    = new Rock();
            Paper    paper   = new Paper();
            Scissors scissor = new Scissors();
            Lizard   lizard  = new Lizard();
            Spock    spock   = new Spock();

            gestures.Add(rock);
            gestures.Add(paper);
            gestures.Add(scissor);
            gestures.Add(lizard);
            gestures.Add(spock);
        }