Skip to content

Instantly share code, notes, and snippets.

View QuantumFractal's full-sized avatar

Thomas Moll QuantumFractal

View GitHub Profile
@QuantumFractal
QuantumFractal / Command.py
Last active August 29, 2015 14:04
Design Patterns
'''
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
'''