From 8df196f258b057d0424e4daa9d5000a3d313baf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 27 Jul 2018 14:00:07 +0200 Subject: [PATCH] Add note on step_next trigger to LinearFSM --- lib/tfw/fsm/linear_fsm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tfw/fsm/linear_fsm.py b/lib/tfw/fsm/linear_fsm.py index cc5a0d1..e515d8f 100644 --- a/lib/tfw/fsm/linear_fsm.py +++ b/lib/tfw/fsm/linear_fsm.py @@ -12,7 +12,8 @@ class LinearFSM(FSMBase): This is a state machine for challenges with linear progression, consisting of a number of steps specified in the constructor. It automatically sets up 2 actions (triggers) between states as such: - (0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ... and so on + (0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ... + (0) -- step_next --> (1) -- step_next --> (2) -- step_next --> (3) ... """ def __init__(self, number_of_steps): self.states = [State(name=str(index)) for index in range(number_of_steps)]