Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Moll QuantumFractal

View GitHub Profile
@QuantumFractal
QuantumFractal / Command.py
Last active Aug 29, 2015
Design Patterns
View Command.py
'''
This is my implementation of the Command design pattern.
It decouples simple actions into a "Command" class that is
inherited by FireCommand, etc.
Written in python for simplicity sake.
For more info >> http://gameprogrammingpatterns.com/command.html
'''