1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
//1 Vs 1 Battle
#include <iostream>
#include <string>
#include <sstream>
#include <ctime>
#include <cstdlib>
using namespace std;
struct Pokemon { //Pokemon list
string name;
int health; // HP 100-200
int defense;// Def 50-100
};
Pokemon matt [6] = { //Matt's Pokemon
"Scizor", 140, 100,
"Mewtwo", 150, 65,
"Hitmonlee", 120, 55,
"Umbreon", 160, 90,
"Lucario", 130, 70,
"Lugia", 180, 80
};
Pokemon chad [6] = { //Chad's Pokemon
"Garchomp", 160, 80,
"Metagross", 150, 100,
"Charizard", 145, 74,
"Aegislash", 130, 100,
"Quagsire", 155, 85,
"Gardevoir", 175,65};
struct Attacks { //Pokemon Attack List
string name;
int damage;
};
Attacks garchomp[4] = { //Garchomps Moveset
"Take Down", 28
"Sand Tomb", 10,
"Dual Chop", 12,
"Dragon Rush", 30
};
Attacks metagross[4] { //Metagross's Moveset
"Metal Claw", 15,
"Zen Headbutt", 25,
"Psychic", 28,
"Hammer Arm", 30
};
Attacks charizard[4] = { //Charizard's Moveset
"Flare Blitz", 30,
"Flame Thrower", 28,
"Slash", 15,
"Fly", 15
};
Attacks aegislash[4] = { //Aegislash's Moveset
"Fury Cutter", 12,
"Shadow Sneak", 12,
"Iron Head", 25,
"Pursuit", 12
};
Attacks quagsire[4] = { //Quagsire's Moveset
"Water Gun", 12,
"Mud Shot", 15,
"Earthquake", 30,
"Muddy Water", 25
};
Attacks gardevoir[4] = { //Gardevoir's Moveset
"Moon Blast", 28,
"Magical Leaf", 17,
"Confusion", 15,
"Psychic", 28
};
Attacks scizor [4] = { //Scizor's Moveset
"Metal Claw", 15,
"Fury Cutter", 13,
"X-Scissor", 25,
"Night Slash", 22
};
Attacks mewtwo [4] { //Mewtwos Moveset
"Psychic", 25,
"Psystrike", 30,
"Swift", 20,
"Aura Sphere", 23
};
Attacks hitmonlee [4] = { //Hitmonlees Moveset
"Close Combat", 30
"Blaze Kick", 25,
"Mega Kick", 22
"Brick Break", 18
};
Attacks umbreon [4] = { //Umbreons Moveset
"Tackle", 15
"Assurance", 20,
"Hyper Beam", 30,
"Pursuit", 13
};
Attacks lucario [4] = { //Lucarios Moveset
"Aura Sphere", 25,
"Bone Rush", 10,
"Metal Claw", 15,
"Dragon Pulse", 25
};
Attacks lugia [4] = { //Lugias Moveset
"Dragon Rush", 30,
"Ancient Power", 20,
"Gust", 10,
"Aeroblast", 30
};
| |