From a2a12ef9820b5f1a299015e8042edbcad0f19e0c Mon Sep 17 00:00:00 2001 From: cqql Date: Sat, 19 Oct 2024 16:07:20 +0200 Subject: [PATCH] reverting the hidden difficulty shift by 2 to make it consistent with the original source --- src/game_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_server.rs b/src/game_server.rs index 28a7eb9..2f1b003 100644 --- a/src/game_server.rs +++ b/src/game_server.rs @@ -19,7 +19,7 @@ pub async fn handle(socket: &mut TcpStream) -> Result<(), String> { ) .await?; - let depth = get_one_char(b"123456789", socket).await? - b'0' + 2; + let depth = get_one_char(b"123456789", socket).await? - b'0'; let mut board = connect4::GameState::new();