This should look like the main loop functions. It might be possible to split these out into their own functions to be able to reduce/reuse code since they do very similar things.
The main loops in general should be able to be simplified due to generics and similar strategies of calculating results.
This should look like the main loop functions. It might be possible to split these out into their own functions to be able to reduce/reuse code since they do very similar things.
The main loops in general should be able to be simplified due to generics and similar strategies of calculating results.