summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:13:23 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:13:23 +0200
commita2ed149069a29212a11eb4a1fa676e6f27d941fd (patch)
tree60974aa7a510fa856873601b11e3692c904e8b8c
parent4b5f429c0d0f369c72ddd0b290769bf61ea83601 (diff)
Fix whitespace
-rw-r--r--src/Model/Game.cpp14
1 files 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
+}