Ok, lets implement an array strategy
Shouldn't be too hard. There are not a lot of total bullets within our game, so it should be pretty straight forward.
lets put this on another branch
git checkout -b fo # first-opt already exists
Wow, such edit
correct, the power of vim.
if you wish to become cool checkout the Vim course on FEM.
- not free, but awesome
lets make sure we have successfully did this refactor
npm run test
the integration test is slow, and its designed for linux (may work on mac (i haven't tested (chad move)))
lsof -ti :42000 | xargs kill -9
Lets check the performance tab!
Did we change anything?
Ok lets see if we PRACTICALLY see anything!
Lets run our little viz program!
if your viz server isn't running,
go run ./cmd/main.go # you can also just run air
use the run script to just run 3 sets of games at 500, 1000, 2000
./run /tmp/fo
Did we make it faster?!?!?!
...
So what do we do now?
bathroom break?
NO
(well maybe)
but MOAR PROFILING