SHARE
TWEET

Untitled

a guest Oct 10th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Board{
  2. public:
  3.     void CreateBoard(int boardSize, bool userUsed = false, int firstVar, int secondVar)
  4.     {
  5.         Brick bricksOnBoard[boardSize][boardSize];
  6.         //this -> sizeOfBoard = boardSize;
  7.         cout << " ";
  8.         for (int i = 0; i < sizeOfBoard; i++)
  9.         {
  10.             cout << " " << i << " ";
  11.         }
  12.         cout << endl;
  13.         int row = 0;
  14.         for (int i = 0; i < sizeOfBoard; i++)
  15.         {
  16.             bool firstTime = true;
  17.  
  18.             for (int j = 0; j < sizeOfBoard; j++)
  19.             {
  20.                 if (j == 0)
  21.                     cout << row;
  22.                 Brick *brick;
  23.                 brick = new Brick();
  24.                 brick = bricksOnBoard[i][j];
  25.                 firstTime = false;
  26.  
  27.                 if(j == firstVar && i = secondVar && userUsed)
  28.                 {
  29.                     brick.ShootBrick();
  30.                 }
  31.             }
  32.             row++;
  33.             cout << endl;
  34.         }
  35.     }
  36. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top