Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mut active_player = &mut self.player1;
- loop {
- ... do stuff with active_player ...
- println!("{} {}", self.player1.last_move(), self.player2.last_move());
- // Switch to next player
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement