Object Oriented Python Using functools.partial
summary
Builds a minimal chess engine without classes by using functools.partial to simulate inheritance and types.SimpleNamespace to get dot-attribute access over underlying dicts. Returns piece and board objects as namespaces, initializes full starting positions, and renders an emoji board string. Movement logic never gets implemented, so no legal-move checking or checkmate detection is shown, and the author warns the pattern is messy and not recommended for production despite demonstrating that functions can act like objects.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:23Notation
- 2:45Review of Object-Oriented Programming
- 4:30Functools Partial
- 6:47Set Up Our Game Board to an Initial State
- 8:39Recap
- 9:38Additional Resources








