Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. /* //fight simulator
  2.     cout << "orc versus human 100 times" << endl;
  3.     Creature human = { 10, 10 };
  4.     Creature orc = { 10, 10 };
  5.     for (int i = 0; i < 100; i++)
  6.     {
  7.         if (fight(orc, human) == 1)
  8.             cout << "orc wins" << endl;
  9.         else
  10.             cout << "human wins" << endl;
  11.     }
  12.     */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement