From ffa7e07aace179725a9b2014050a6e4fe26dd034 Mon Sep 17 00:00:00 2001
From: Francesco Bariatti <francesco.bariatti@insa-rennes.fr>
Date: Wed, 16 Mar 2016 17:47:40 +0100
Subject: [PATCH] Implemented total_moves

---
 .gitignore           | 1 +
 src/game/penguin.cpp | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index e660fd9..f098703 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 bin/
+__pycache__/
diff --git a/src/game/penguin.cpp b/src/game/penguin.cpp
index ccd9f05..6acc76d 100644
--- a/src/game/penguin.cpp
+++ b/src/game/penguin.cpp
@@ -91,8 +91,7 @@ namespace game
 	/* Number of moves that you can play */
 	uint16_t penguin::number_of_moves() const
 	{
-		//return 9 - state.total_moves;
-		return 0;
+		return state.current_player_red ? state.nb_moves_red : state.nb_moves_blue;
 	}
 
 	/* The penguin that will move if we want to play the #move_number move in the list of possible moves.
-- 
GitLab