Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. let mut active_player = &mut self.player1;
  2. loop {
  3. ... do stuff with active_player ...
  4.  
  5. println!("{} {}", self.player1.last_move(), self.player2.last_move());
  6.  
  7. // Switch to next player
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement