Exemple #1
0
        public void RPSGameCompResult()
        {
            if (ComputerChoice() == 2 && PlayerChoice() == 1)

            {
                paper.paperSlaysRock();
            }
            else if (ComputerChoice() == 4 && PlayerChoice() == 1)
            {
                spock.spockSlaysRock();
            }

            else if (ComputerChoice() == 3 && PlayerChoice() == 2)
            {
                scissors.scissorsSlaysPaper();
            }
            else if (ComputerChoice() == 4 && PlayerChoice() == 2)
            {
                lizard.lizardSlaysPaper();
            }
            else if (ComputerChoice() == 1 && PlayerChoice() == 3)
            {
                rock.rockSlaysScissors();
            }
            else if (ComputerChoice() == 5 && PlayerChoice() == 3)
            {
                spock.spockSlaysScissors();
            }
            else if (ComputerChoice() == 2 && PlayerChoice() == 4)
            {
                paper.paperSlaysSpock();
            }
            else if (ComputerChoice() == 5 && PlayerChoice() == 4)
            {
                lizard.lizardSlaysSpock();
            }

            else if (ComputerChoice() == 3 && PlayerChoice() == 5)
            {
                scissors.scissorsSlaysLizard();
            }
            else if (ComputerChoice() == 1 && PlayerChoice() == 5)
            {
                rock.rockSlaysLizard();
            }
        }