asmcup / runtime

Runtime and compiler for the Assembly Cup
https://asmcup.github.io
MIT License
139 stars 11 forks source link

Added sensor and lazer interaction with bots. #192

Closed MLanghof closed 7 years ago

MLanghof commented 7 years ago

Includes unit tests. Also added more tests for the sensor beam. Fixes #156.

The laser deals 1024 damage per frame while consuming ~100 battery for the user at max range (less if hitting something earlier). This feels appropriate in tests. Damage does not depend on laser strength right now. Let me know if it should.