Show HN: Yare.io – Kill all enemy cats. With JavaScript. (yare.io)

3 points by levmiseri ↗ HN
A deceptively simple game of 9 vs. 9 cats. Your actions are limited to moving and shooting, but 'how' you move your units and when or which cat you shoot can be difficult to decide.

You can play against the prepared bots, or against other 'human' players in real-time matches.

4 comments

[ 0.23 ms ] story [ 21.6 ms ] thread
its a pretty interesting game
Is it possible to hide the editor to see the cats?

In the demo, it it possible to end the game instantly, if my bot has a bug the easy enemy model takes too long to win.

I guess you have to add collisions. Otherwise the best strategy is probably to stack all the cats in the same position and get a x9 death ray.

Is array.sort working? In particular

  enemies.sort((a,b) => {1})
or

  enemies.sort((a,b) => {-1})

?