Rebuilding Pokémon with Object Oriented Programming

Christopher Okhravi Video 4 months ago

Description

Let’s model the turn-based battle mechanics of the Pokémon games while following object oriented design principles.

📕 GET THE BOOK
https://theobjectorientedway.com

▶️ WATCH THIS NEXT
https://youtu.be/anbdaVBQT14

00:00:00 Intro
00:02:11 Battles & Battlers
00:04:05 Moves Supertype
00:07:26 Concrete Moves
00:08:05 Preconditions & Applicability
00:13:02 Attempts Supertype
00:13:35 Attempts
00:16:56 Cascade
00:20:32 Combo
00:22:55 Conditions
00:23:22 Logical Conditions
00:24:48 Probabilistic Conditions
00:25:59 Number Conditions
00:27:06 Battler Conditions
00:28:32 Battle Conditions
00:28:56 Targets
00:29:45 For-Combinator
00:31:26 Effects
00:32:36 Effect Sequences
00:34:15 Conditional Effects
00:36:21 Making Impossible States Impossible
00:38:41 Domain-Specific Effects
00:44:29 Numbers
00:45:38 Random Numbers
00:46:58 Combining Numbers
00:48:20 Pokémon Numbers
00:50:51 Code Example 1
00:52:52 Code Example 2
00:54:25 Code Example 3
00:56:43 Code Example 4
01:00:00 Visualised Example 1
01:02:43 Visualised Example 2
01:05:59 Outro