diff --git a/Cargo.toml b/Cargo.toml index 254149f..c2e9a36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "Rust-Pong" -version = "1.0.1" +version = "1.1.0" authors = ["Vianpyro"] edition = "2024" diff --git a/src/player/player_type.rs b/src/player/player_type.rs index 24a82ac..5db24b9 100644 --- a/src/player/player_type.rs +++ b/src/player/player_type.rs @@ -41,7 +41,7 @@ impl PlayerType { pub fn create_controller_for_player(&self, player: Player) -> Box { match self { PlayerType::Human => { - if player == Player::Right { + if player == Player::Left { Box::new(HumanController::new(KeyCode::W, KeyCode::S)) } else { Box::new(HumanController::new(KeyCode::Up, KeyCode::Down))