Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "Plansza.h"
- int main() {
- Plansza plansza(10, 10);
- plansza.deployMines(5, false);
- std::cout << plansza.countMines(0, 1) << std::endl;
- int x, y;
- do {
- plansza.display();
- std::cout << "\nPodaj x i y: ";
- std::cin >> x >> y;
- //plansza.reveal(x, y);
- } while(plansza.reveal(x, y));
- plansza.reveal(5, 2);
- plansza.display();
- return 0;
- }
Add Comment
Please, Sign In to add comment