Commit 8d2582f6 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

modification de Moves.py : si le label d'un mouvement RIGHT ou LEFT est...

modification de Moves.py : si le label d'un mouvement RIGHT ou LEFT est inconnu, il est remplacé par NULL
parent cb1e3c1f
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment