#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 = 6;
  string monsterNames[NUM_MONSTERS] =
    { "dragon", "the system", "broken-heart",
      "those match 3 in a row games",
      "your guardians", "your best friend"};
  //create an array of ? strings intended for names
  int monsterHitPoints[NUM_MONSTERS] = 
    {300, 467, 534, 65, 999, 10};
  //above creates an array of ? ints for hps!
  int monsterGivesExperience[NUM_MONSTERS] =
    { 20, 10, 10, 5, 30, 5 };


  cout << "---Possible monsters are:--- " << endl;
  for (int i = 0; i < NUM_MONSTERS; i++) {
    cout << monsterNames[i] << " has ";
    cout << monsterHitPoints[i] << "hps and";
    cout << " gives " << monsterGivesExperience[i] << "xp" << endl;
  }
  cout << "--- --- --- --- --- --- --- ---" << endl;
  int randomMonsterIndex = rand() % NUM_MONSTERS;
  cout << "The monster you've randomly encountered is: ";
  cout << monsterNames[randomMonsterIndex] << ": ";
  cout << monsterHitPoints[randomMonsterIndex] << endl;
  cout << "If you win you'll receive "
       << monsterGivesExperience[randomMonsterIndex] << "xp!" << endl;

}
