Difference between revisions of "Thread:User talk:D414/Diary of a Robocoder/Micro sized mirage gun"
Jump to navigation
Jump to search
(New thread: Micro sized mirage gun) |
(No difference)
|
Latest revision as of 16:23, 29 April 2024
Great work! I'm very curious how it would do when combined with nano-sized melee movement. In case it helps (and you haven't already done it) you could reduce the code size by
- Removing the gameTime > 1 check.
- Use a constant state instead of makeState(...) when the opponent wasn't scanned for consecutive ticks.
- Instead of replacing a random table entry, just keep replacing the last one when the table is full.
- Don't add the weight/5 addition to the midpoint aim bin.
I imagine these changes would only slightly degrade performance while saving a decent amount of code size, but I kept them in Mirage because I had the space.