|
|
|
|
|
by bjpirt
3168 days ago
|
|
It's a nice idea and really well executed but the second test just demonstrates to me how JS is not an ideal language for a beginner to learn as you're thrown straight into async execution and having to work around the fact that functions execute immediately with arcane workarounds. I still think Python is the most straightforward to learn, even though the whitespace constantly catches beginners out too. |
|
What's going on there is just that the robot can only enqueue a single action for the tick. So calling multiple actions will just overwrite the slot.
It's an implementation detail of the game. Maybe it's tougher for beginners or not the best trade-off, but it doesn't have much to do with Javascript