#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;

int main() {
  srand(time(0));  //seed the rng
  rand(); // throw away the first #

  const int NUM_MONSTERS = 7;
  string monsterNames[NUM_MONSTERS] = {"cathulhu", 
				       "the system", "princess sprinkles sparkles",
				       "that really crappy school's team", 
				       "your mom", "that 3 matching game",
				       "BROOKIE"};

  int monsterHitPoints[NUM_MONSTERS] =
    { 5000, 9000, 90001, 3, 42, 3, 7 };

  int monsterXP[NUM_MONSTERS] = {
    20, 30, 9001, 1, 10, 1, 10 };

  const int NUM_ELEMENTS = 9;
  string elements[NUM_ELEMENTS] = 
    {"firey", "icey", "electric", "darknessy",
     "swag", "your mommy", "summer breezey",
     "newborn baby freshy",
     "old person smelly"};

  int elementsMULT[NUM_ELEMENTS] =
    { 2, 3, 4, 5, 6, 1000, 1, 1, 10 };

  /*
    cout << "Your possible opponents: " << endl;
    for (int i = 0; i < NUM_MONSTERS; i++) {
    cout << monsterNames[i] << " has " <<
    monsterHitPoints[i] << " HPs!" <<
    " and gives " << monsterXP[i] << "xp!" << endl;
    }
  */
  int randomElementIndex = rand() % NUM_ELEMENTS;
  int randomMonsterIndex = rand() % NUM_MONSTERS;
  cout << "You're entering a fight with: " << endl;
  cout << elements[randomElementIndex] << " " <<
    monsterNames[randomMonsterIndex] <<
    "(" << 
    monsterHitPoints[randomMonsterIndex] *
    elementsMULT[randomElementIndex]
       << ")" << endl;

  cout << "If the monster is defeated you earn " <<
    monsterXP[randomMonsterIndex] << " xp!" << endl;
}
