Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 players turn to move, just
like in chess.
The picture shows the war screen, which is the scene that battle between two Pokemons
1
will occur. Two players will choose their Pokemons and after selection player 1 will move
f
irst. 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 its 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, lets start from the very beginning, from getting the data of the
Pokemons.
1. 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 18
of them for this game.
In our game, rules are simple: two Pokemons fight, one that finishes enemys health
faster wins. So Pokemons are going to have only those attributes: Name, Element
type, HP and attack values. From the given Pokemon database, you will drop all
2
other columns.
Also the 18 Pokemons we are going to use are given below, drop all others:
Bulbasaur
Ivysaur
Venusaur
Charmander
Charmeleon
Charizard
Squirtle
Wartortle
Blastoise
Caterpie
Metapod
Butterfree
3
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.
4
2. 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 doesnt 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 1, player 1 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
1 decides the Pokemon he wants, then needs to click Choose button and then selection
window for player 2 will appear.
5
6
Above figures you see only 6 Pokemons for each player, but cleaned dataset had 18 of
them? Where are the rest 12 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 6 different Pokemons,
and every Pokemons has their evolution level 2 and 3. In the battles, the Pokemon
who won the round will get evolved and both its attributes and image will change. So
other 12 Pokemon will appear in the next phases of the battles.
After both players choose their Pokemons, battle will begin.
3. Battles are performed turn based, one player hits and after him other player hits. So
be sure when its one players turn, other player has to wait and can not attack.
In the figure as you see, since its Player 1s turn (Player 1 starts the game) buttons
of Player 2 are disabled.
Players have two options: physical attack and elemental attack. Difference of physical
and elemental attack is like as follows:
Physical: Can give damage between 75%-100% of Pokemons attack value.
Elemental: Can give damage between 50%-100% of Pokemo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions