Pass Mailbox instead of Game on related functions for clarity
This commit is contained in:
@@ -47,7 +47,7 @@ impl Game {
|
||||
|
||||
pub fn make_move(&mut self, mv: &Move) {
|
||||
self.history
|
||||
.push_move_parameters(MoveParameters::build(&self, mv));
|
||||
.push_move_parameters(MoveParameters::build(self, mv));
|
||||
|
||||
let board = &mut self.board;
|
||||
let mailbox = &mut self.mailbox;
|
||||
|
||||
Reference in New Issue
Block a user