Skip to content

Commit 91118c2

Browse files
committed
Add strategy design pattern example
1 parent 671bdb8 commit 91118c2

File tree

2 files changed

+1012
-1
lines changed

2 files changed

+1012
-1
lines changed

source-code/design-patters/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ 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-
* `finite-state-parser`: illustration of object-oriented data
11+
1. `finite-state-parser`: illustration of object-oriented data
1212
representation and the state pattern.
13+
1. `strategy_design_pattern.ipynb`: notebook illustrating how a strategy
14+
design pattern can simplify simulations.

source-code/design-patters/strategy_design_pattern.ipynb

Lines changed: 1009 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)