Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* //fight simulator
- cout << "orc versus human 100 times" << endl;
- Creature human = { 10, 10 };
- Creature orc = { 10, 10 };
- for (int i = 0; i < 100; i++)
- {
- if (fight(orc, human) == 1)
- cout << "orc wins" << endl;
- else
- cout << "human wins" << endl;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement