From a2ed149069a29212a11eb4a1fa676e6f27d941fd Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Thu, 30 Apr 2015 09:13:23 +0200 Subject: [PATCH] Fix whitespace --- src/Model/Game.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Model/Game.cpp b/src/Model/Game.cpp index 1e24b11..aa3626c 100644 --- a/src/Model/Game.cpp +++ b/src/Model/Game.cpp @@ -15,11 +15,11 @@ void Game::play() while(!m_grid->gridIsFull()) { m_grid->show(); - + pop(); std::cout << std::endl; } - + m_grid->show(); } @@ -32,23 +32,23 @@ void Game::showGrid() void Game::pop() { bool cellChosen = false; - + int i; int j; - + while(!cellChosen) { i = rand() % 4; j = rand() % 4; - + if (m_grid->isEmpty(i,j)) cellChosen = true; } - + m_grid->setCell(i, j, new Cell("2")); } bool Game::isOver() { return m_grid->gridIsFull(); -} \ No newline at end of file +}