Skip to main content
2 of 6
format
Adi
  • 19
  • 2

Very good first attempt.

Try incorporating these into code:

  1. Solid Patterns
    1.1. Segregate Actors and Actions
    1.2. Actors are Data Class which has data
    1.3. Actions can be strategy
    1.4. We can make class for engine with composition with Data Class + Actions
    1.5. Later Actions can come from AI Engine
    Bonus: Actions Validation Engine

  2. Use Lombok
    2.1. Code will be lot cleaner

  3. Create Interfaces
    3.1. Will make actions more clearer

Adi
  • 19
  • 2