Skip to content
Snippets Groups Projects
Commit 72c7e34e authored by Franck Dary's avatar Franck Dary
Browse files

Allow several consecutive backs

parent 62b38a8c
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,6 @@ class Transition : ...@@ -19,8 +19,6 @@ class Transition :
def apply(self, config, strategy) : def apply(self, config, strategy) :
data = None data = None
config.historyHistory.add(str([t[0].name for t in config.historyPop]))
if self.name == "RIGHT" : if self.name == "RIGHT" :
applyRight(config) applyRight(config)
elif self.name == "LEFT" : elif self.name == "LEFT" :
...@@ -32,6 +30,7 @@ class Transition : ...@@ -32,6 +30,7 @@ class Transition :
elif self.name == "EOS" : elif self.name == "EOS" :
applyEOS(config) applyEOS(config)
elif "BACK" in self.name : elif "BACK" in self.name :
config.historyHistory.add(str([t[0].name for t in config.historyPop]))
size = int(self.name.split()[-1]) size = int(self.name.split()[-1])
applyBack(config, strategy, size) applyBack(config, strategy, size)
else : else :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment