Skip to content

Commit 3c746d7

Browse files
committed
Add illustration of state machine design pattern
1 parent e0aad47 commit 3c746d7

2 files changed

Lines changed: 991 additions & 2 deletions

File tree

source-code/design-patterns/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Code to illustrate some design patterns in Python.
88
can be used to change the behaviour of objects.
99
1. `factory_design_pattern.ipynb`: notebook illustrating how a factory class
1010
can be used to conveniently construct many objects with the same properties.
11-
1. `finite-state-parser`: illustration of object-oriented data
12-
representation and the state pattern.
1311
1. `iterator_design_pattern.ipynb`: illustration of the iterator design pattern
1412
(as well as the factory pattern).
1513
1. `strategy_design_pattern.ipynb`: notebook illustrating how a strategy
1614
design pattern can simplify simulations.
15+
1. `state_machine_design_pattern.ipynb`: notebook illustrating how a state
16+
machine can be implemented in Python.
17+
1. `finite-state-parser`: illustration of object-oriented data
18+
representation and the state pattern.

0 commit comments

Comments
 (0)