WarriorJS Docs
  • Player
  • Maker
  • Community
  • English
    • العربية
    • Català
    • Čeština
    • Deutsch
    • Ελληνικά
    • Español
    • Français
    • Italiano
    • Polskie
    • Русский
    • Српски језик (Ћирилица)
    • Svenska
    • Türkçe
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub

›Tips & Tricks

Game

  • Overview
  • Object
  • Gameplay
  • Perspective
  • Scoring
  • Epic Mode
  • Towers

Concepts

  • Units
  • Warrior
  • Abilities
  • Spaces

Player API

  • Space API
  • Unit API
  • Turn API

Tips & Tricks

  • General
  • JavaScript
  • Artificial Intelligence
  • CLI

CLI

  • Install
  • Options
Edit

AI Tips

  • Once you've made some progress in the tower, your code may have turned into a bunch of nested if/else statements. If that's the case, you may want to apply some AI concepts like FSMs and the State pattern, or more trendy things like Behavior Trees.
← JavaScript TipsCLI Tips →
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar