#include<iostream>
#include <cstdlib>
#include <ctime>
usingnamespace std;
class Enemyclass{
public:
Monster(){
srand(static_cast<unsignedint>(time(0)));
int randomNumber = rand();
int die = (randomNumber % 10) + 6;
int attack;
int magic;
int choice;
int A;
int B;
cout<<"I will destroy YOU!!!!"<<endl;
cout<<"Press A to attack"<<endl;
cout<<"Press B to use magic"<<endl;
cin>> choice;
if(choice= A){
cout<<"You attack and do "<<die<<" damage"<<endl;}
if(choice=B){
cout<<"your magic does "<<die<<" damage."<<endl;}
}
};
int main()
{
cout<<"You encounter a monster"<<endl;
Enemyclass monsterObject;
monsterObject.Monster();
return 0;
}