Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- using namespace std;
- int main(int argc, char* argv[])
- {
- bool grid[8][8] = {0};
- int bossx, bossy;
- srand (time(NULL));
- bossx = rand() % 8;
- bossy = rand() % 8;
- grid[bossx][bossy] = 1;
- for (int i = 0; i < 8; ++i)
- {
- for (int j = 0; j < 8; ++j)
- {
- if(grid[i][j]) cout << "Boss found at " << i << ", " << j << "\n";
- }
- }
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement