CyrusVatandoost / search-battle

Test out your path finding algorithms with other bots.
0 stars 3 forks source link
path-finding searching-algorithms

search-battle

How to run the game:

How to run the editor:

How to edit your bots:

How to move your bot:

  1. direction
    • changing the int variable direction to UP/DOWN/LEFT/RIGHT/STAY. This will move your bot to the direction to direction was set to every time the game updates
  2. move
    • changing the int variable move to UP/DOWN/LEFT/RIGHT/STAY moves your Bot ONCE (1 time) and your Bot will not move again after the game updates
  3. moveList
    • adding ints to the variable moveList. It's an arraylist in which the game will check for the FIRST element in the list and perform that move for ONE game update (1 time) and will delete it, then it performs the next element in the list. This could mean you can have in the list; {UP, UP, LEFT, LEFT} to move your Bot up twice then left twice

Movement priority:

I made the game check for these variables each game update in a specific priority order:

This is to give you guys more flexibility in making your Bot move in whatever way you want.

If you want your bot to move up you can either:

if you are confused or have any questions or concerns just ask me