From 8d2582f6004fcdd3a91bc26ee92d10c9935f1a18 Mon Sep 17 00:00:00 2001
From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr>
Date: Fri, 16 Oct 2020 11:18:51 +0200
Subject: [PATCH] =?UTF-8?q?modification=20de=20Moves.py=20:=20si=20le=20la?=
 =?UTF-8?q?bel=20d'un=20mouvement=20RIGHT=20ou=20LEFT=20est=20inconnu,=20i?=
 =?UTF-8?q?l=20est=20remplac=C3=A9=20par=20NULL?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Moves.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Moves.py b/src/Moves.py
index 33e2514..4dfc036 100644
--- a/src/Moves.py
+++ b/src/Moves.py
@@ -19,8 +19,9 @@ class Moves:
         if(mvtType == 'ROOT'):   return 2
         labelCode = self.dicoLabels.getCode(mvtLabel)
         if not labelCode :
-            print("cannot compute code of movement ", mvt, "label ", mvtLabel, "unknown")
-            exit(1)
+            labelCode = self.dicoLabels.getCode('NULL')
+            #print("cannot compute code of movement ", mvt, "label ", mvtLabel, "unknown")
+            #exit(1)
         if(mvtType == 'RIGHT'):  return 3 + 2 * labelCode
         if(mvtType == 'LEFT'):   return 3 + 2 * labelCode + 1
 
-- 
GitLab