mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 06:12:54 +00:00 
			
		
		
		
	Add note on step_next trigger to LinearFSM
This commit is contained in:
		@@ -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)]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user