summaryrefslogtreecommitdiff
path: root/src/Model/Game.cpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 11:06:54 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 11:06:54 +0200
commit6b8a144bd192de206e11a171841ec6161d11b6aa (patch)
tree0e0d17f8571750233c4b3008b45e2284d2b03f15 /src/Model/Game.cpp
parent01b25accba1a5329e220aa647255d2c2b284c16e (diff)
Correct bugs
Diffstat (limited to 'src/Model/Game.cpp')
-rw-r--r--src/Model/Game.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/Model/Game.cpp b/src/Model/Game.cpp
index c2252ff..3054990 100644
--- a/src/Model/Game.cpp
+++ b/src/Model/Game.cpp
@@ -10,18 +10,7 @@ Game::~Game()
delete m_grid;
}
-void Game::play()
-{
- while(!m_grid->gridIsFull())
- {
- m_grid->show();
- pop();
- std::cout << std::endl;
- }
-
- m_grid->show();
-}
void Game::showGrid()
{
@@ -50,5 +39,12 @@ void Game::pop()
bool Game::isOver()
{
- return m_grid->gridIsFull();
+ if(m_grid->gridIsFull()){
+ for(int i=0;i<4;i++){
+ std::cout << m_grid->getCell(0,i)->description();
+ }
+
+ }
+
+ return true;
}