diff options
Diffstat (limited to 'src/game.rs')
| -rw-r--r-- | src/game.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.rs b/src/game.rs index 11a77fd..5aef809 100644 --- a/src/game.rs +++ b/src/game.rs @@ -87,7 +87,7 @@ impl GameHandler /// Play in the terminal with `p1` as the sheep and `p2` as the tigers, until someone wins and /// the user quits. Returns the winner, or None if the user quit before the game was won. - pub fn play_game<T1: Player, T2: Player>(&mut self, p1: &mut T1, p2: &mut T2) -> io::Result<Option<Turn>> + pub fn play_game(&mut self, p1: &mut dyn Player, p2: &mut dyn Player) -> io::Result<Option<Turn>> { let mut terminal = ratatui::init(); let result = execute!(io::stdout(), EnableMouseCapture) |
