Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How should it look like? Graphical user interface is a bit detailed in this project, it is going to consist of more than one layout.
How should it look like?
Graphical user interface is a bit detailed in this project, it is going to consist of more than
one layout. So let's advance step by step.l
How should it work:
In our Pokemon game, main game flow consists of the battle of two players. If you have ever
played any Pokemon game before, it will seem pretty familiar, of course a bit simplified.
In Pokemon games, two Pokemons battle at once, and battles are performed as turn based,
which means one player moves first then it becomes the other player's turn to move, just
like in chess.
The picture shows the war screen, which is the scene that battle between two Pokemons
will occur. Two players will choose their Pokemons and after selection player will move
first. Players can choose two different attack types, first one is physical, which is the more
consistent one, second one is elemental, which is the less consistent but high risk high
reward type of move.
Each Pokemon will have it's own element type and this element type will matter in battles
if players prefer using elemental attacks. Fire is stronger than nature and water is stronger
than fire etc.
But before going this far, let's start from the very beginning, from getting the data of the
Pokemons.
If you are familiar with the Pokemon culture, there are hundreds of Pokemons in the
Pokemon universe. Also every Pokemon has an element, a sub element, generation,
some of them are legendary etc. so as you can see there are too many details for a
simple child play. In this project, we are going to simplify things a lot and use only
the data we needed. So first, see the figure below, which is the Pokemon.csv file that
we are going to give you to do some data cleaning on it we are going to need only
of them for this game.
In our game, rules are simple: two Pokemons fight, one that finishes enemy's health
faster wins. So Pokemons are going to ave only those attributes: Name, Element type,
HP and attack values In game, we will use times this health value From the given
Pokemon database, you will drop all other columns.
Also the Pokemons we are going to use are given below, drop all others:
Bulbasaur Ivysaur, Venusaur, Charmander Charmeleon, Charizard, Squirtle, Wartortle, Blastoise, Caterpie, Metapod, Butterfree, Weedle, Kakuna, Beedrill, Pidgey, Pidgeotto, Pidgeot
After this data cleaning done, your new and clean dataset should seem like this:
Use pandas for this task and write the clean database to a csv file.
You are going to use these Pokemon data in game, when players choose their Pokemons,
their attributes will be taken from this file In game, times of health value of Pokemons
in csv will be used
After getting the clean dataset, now we are ready to build the GUI for the game flow.
First, players needs to choose their Pokemons, so we are going to need a Pokemon
selection screen. Here you can build your own beautiful GUIs but it doesn't need to
be too much detailed, or specifically the same with the selection screen system below,
just create something that will do the task, which is just the selection of Pokemons.
Above you see the selection window for Player player will going to choose the name
of Pokemon from the ListBox and then see the image of the Pokemon in the question
marked place.
Image will change when player click any of the Pokemons in the ListBox. When player
decides the Pokemon he wants, then needs to click Choose button and then selection
window for player will appear.
Above figures you see only Pokemons for each player, but cleaned dataset had of
them? Where are the rest Pokemons?
If you are not familiar with Pokemon universe, pokemons can evolve as they grow up
or fight and get stronger. In the dataset we cleaned actually has different Pokemons,
and every Pokemons has their evolution level and In the battles, the Pokemon
who won the round will get evolved and both it's attributes and image will change. So
other Pokemon will appear in the next phases of the battles.
After both players choose their Pokemons, battle will begin.
Battles are performed turn based, one player hits and after him other player hits. So
be sure when it's one player's turn, other player has to wait and can not attack.
In the figure as you see, since it's Player s turn Player starts the game buttons
of Player are disabled.
Players have two options: physical attack and elemental attack. Difference of physical
and elemental attack is like as follows do not forget to multiply by the health value
of Pokemons given in the csv:
Physical: Can give damage between of Pokemon's attack value.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started