SimUDuck - Strategy Pattern

This is a TypeScript/React recreation of the famous SimUDuck app from Head First Design Patterns.

Strategy Pattern Breakdown:
  • Context: The Duck abstract class.
  • Strategy Interfaces: FlyBehavior and QuackBehavior.
  • Concrete Strategies:FlyWithWings, FlyNoWay, Quack, Squeak, etc.

How to play: Click on the ducks!
🦆 Real Ducks give +10 points.
🐤 Rubber Ducks give +2 points.
🪵 Decoys are traps! -5 points.

Score: 0
Click ducks to verify behavior!
System Ready...