• File names: pokemon.py Pokemon was a worldwide cartoon, video game and card-game phenomenon. My nephews used to play the card game for hours every day. For this problem, you will write a program that runs a Pokemon tournament Rules: We'll use a variation of Rock-Paper-Scissors (RPS) to manage each Pokemon battle. The rules are simple and work as follows: • Rock vs. Scissors: Rock wins. • Paper vs. Rock: Paper wins. • Scissors vs. Paper: Scissors wins. At the beginning of each round, a player secretly makes their selection (rock, paper or scissors). Simultaneously the players display their choices. If both players display the same selection, it's a draw. Otherwise the winner is determined by the RPS "what beats what" designation above. The names of the Pokemon for this tournament are as follows • Bulbasaur, Charmander, Butterfree, Rattata, Weedle, Pikachu, Sandslash, Jigglypuff, Raichu, Diglett You can find these and other characters from the Pokemon universe here: https://www.ranker.com/list/complete-list-of-all-pokemon- characters/vide0-game-info - Requirements: The order of the pokemons listed above is important. Bulbasaur is pokemon 1, Charmander is pokemon 2 and so on. The special case is Diglett, who is the "default" pokemon. For this game, use the following values: Rock = 1, Paper == 2, and Scissors == 3 • You must provide two functions as part of your solution: • get_player ( num ) and • check_battle( computer, player ) get player() returns the name of the pokemon associated with the numbering scheme described above. For example, calling get_player(2) returns Charmander. Calling get_player(101) returns Diglett (the default pokemon) check battle () returns the result of a single Rock-Paper-Scissors encounter. Inputs are the RPS selections for the computer and player and the return value is a string that has one of these values: "DRAW!" (if the RPS battle is a tie), "COMPUTER" (if the computer RPS value defeats the player value) or "PLAYER" (if the player RPS value defeats the computer value) Our auto-tester will validate these functions. Once you have completed the functions described above, finish building the rest of the game as described below: Your program will implement a computer vs. human Pokemon tournament. You must allow the human to select which team they want to "coach" (Red or Blue). Each team will automatically select from the Pokemon list to determine which Pokemon they are playing for the current round. Both teams use the same set of Pokemon, so it's okay if both teams field the same Pokemon for the match (e.g.: Red Jigglypuff vs. Blue Jigglypuff).
• File names: pokemon.py Pokemon was a worldwide cartoon, video game and card-game phenomenon. My nephews used to play the card game for hours every day. For this problem, you will write a program that runs a Pokemon tournament Rules: We'll use a variation of Rock-Paper-Scissors (RPS) to manage each Pokemon battle. The rules are simple and work as follows: • Rock vs. Scissors: Rock wins. • Paper vs. Rock: Paper wins. • Scissors vs. Paper: Scissors wins. At the beginning of each round, a player secretly makes their selection (rock, paper or scissors). Simultaneously the players display their choices. If both players display the same selection, it's a draw. Otherwise the winner is determined by the RPS "what beats what" designation above. The names of the Pokemon for this tournament are as follows • Bulbasaur, Charmander, Butterfree, Rattata, Weedle, Pikachu, Sandslash, Jigglypuff, Raichu, Diglett You can find these and other characters from the Pokemon universe here: https://www.ranker.com/list/complete-list-of-all-pokemon- characters/vide0-game-info - Requirements: The order of the pokemons listed above is important. Bulbasaur is pokemon 1, Charmander is pokemon 2 and so on. The special case is Diglett, who is the "default" pokemon. For this game, use the following values: Rock = 1, Paper == 2, and Scissors == 3 • You must provide two functions as part of your solution: • get_player ( num ) and • check_battle( computer, player ) get player() returns the name of the pokemon associated with the numbering scheme described above. For example, calling get_player(2) returns Charmander. Calling get_player(101) returns Diglett (the default pokemon) check battle () returns the result of a single Rock-Paper-Scissors encounter. Inputs are the RPS selections for the computer and player and the return value is a string that has one of these values: "DRAW!" (if the RPS battle is a tie), "COMPUTER" (if the computer RPS value defeats the player value) or "PLAYER" (if the player RPS value defeats the computer value) Our auto-tester will validate these functions. Once you have completed the functions described above, finish building the rest of the game as described below: Your program will implement a computer vs. human Pokemon tournament. You must allow the human to select which team they want to "coach" (Red or Blue). Each team will automatically select from the Pokemon list to determine which Pokemon they are playing for the current round. Both teams use the same set of Pokemon, so it's okay if both teams field the same Pokemon for the match (e.g.: Red Jigglypuff vs. Blue Jigglypuff).
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Topic Video
Question
It is a python program. Make sure it works and run in IDLE 3.10. Please show the code screenshot and output screenshot.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education