Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //PROG8CLIENT.CPP
- #include "prog8tower.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int diskQuantity;
- Tower* gameSession;
- do {
- cout << "With how many disks would you like to play? (>=1 / <= 9): ";
- cin >> diskQuantity;
- } while (diskQuantity < 1 || diskQuantity > 9);
- gameSession = new Tower(diskQuantity);
- gameSession->showTower();
- gameSession->moveTower(diskQuantity, 1, 3, 2);
- delete gameSession;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement