explain start condition
This commit is contained in:
parent
8f9b90c825
commit
7f28fdf152
1 changed files with 8 additions and 0 deletions
|
@ -82,6 +82,14 @@ included are 3 robots:
|
|||
- simplehunter
|
||||
As the name implies, it is a simple hunting robot, that scans the surrounding playing field and if an enemy is detected, it starts to follow and aims the guns to the target. if the right distance is reached, it will fire its cannon.
|
||||
|
||||
To start the simulation, you need to have 2 robots connected and waiting.
|
||||
This can be changed in the server index.ts in line 10.
|
||||
Changing it to
|
||||
```Javascript
|
||||
worldSim.start(3)
|
||||
```
|
||||
will wait for 3 robots.
|
||||
|
||||
You can (and should) create your own bots with as many logic as you seem fit. Use simple state machines, fancy AI, or whatever.
|
||||
If you use typescript, the easiest way to interface the robot is via overloading the RoboBase class, see above robots as examples.
|
||||
You can use any other language and use above websocket messages.
|
||||
|
|
Loading…
Reference in a new issue