Accidentally Used Design Patterns When Rebuilding Pokémon

Christopher Okhravi Guide 4 months ago

Description

In the last video we did a deep dive into the world of turn based battle games, like Pokemon. Turns out we used lots of object oriented design patterns in that solution. So that’s what we’re talking about today.

📺 Previous video:
https://youtu.be/CyRtTwKeulE

📕 The Object Oriented Way
https://theobjectorientedway.com
Thank you for buying my book! 🙏

🧩 Classic playlist on Design Patterns:
https://www.youtube.com/playlist?list=PLrhzvIcii6GNjpARdnO4ueTUAVR9eMBpc


Other books you might be interested in:

👉 Design Patterns: Elements of Reusable Object-Oriented Software
https://geni.us/PsXmo

👉 Head First: Design Patterns
https://geni.us/nlbA6

00:00 Intro
00:40 Strategy Pattern
02:33 Strategy Pattern Case 1: Numbers
05:00 Strategy Pattern Case 2: Effects
07:38 Strategy Pattern Case 3: Conditions
10:12 Strategy Pattern Conclusion
10:49 Composite Pattern
12:31 Composite Pattern Case 1: Numbers
15:56 Composite Pattern Case 2: Effects
18:19 Composite Pattern Case 3: Conditions
21:00 Composite Pattern Conclusion
21:20 Decorator Pattern
23:36 Decorator Pattern Case: Moves
26:16 Decorator Pattern Conclusion
26:53 Command Pattern
29:22 Command Pattern Case: Moves
31:36 Command Pattern Conclusion
32:20 Mixing Patterns
32:46 Null Object Pattern
34:14 Null Object Pattern Case: Effects
36:16 Conclusion