Make run
take self
instead of &mut self
#18
Labels
refactoring
Improves code quality without touching features
run
take self
instead of &mut self
#18
Currently, running a game driver is backed by
GameDriver::run(&mut self) -> ...
.This has a set of drawbacks:
GameDriver
drives exactly one game, therefore lending towards the signatureGameDriver::run(self) -> ...
&mut self
The underlying assumption was that with the
self
signature, terminating the running driver would be hard/impossible and storing theGameDriver
would be hard, too. This is probably not the case when using theAbortable
future. Check this.The text was updated successfully, but these errors were encountered: