From e2d0c5dac77e74fc02b248f78261bb396e445ca8 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Sun, 5 Nov 2023 19:04:44 -0600 Subject: [PATCH] Mini style adjustment --- src/botinterface.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/botinterface.cpp b/src/botinterface.cpp index f35941b..4712adf 100755 --- a/src/botinterface.cpp +++ b/src/botinterface.cpp @@ -57,12 +57,8 @@ namespace snakeplusplus */ // Probability-based approach for fun double roll = ((double) GenerateRandomNumber(RAND_MAX)) / ((double) RAND_MAX); - if (roll <= probabilityBFS) - { - BFS(gameBoard, source, boundaries); - } else { - DFS(gameBoard, source, boundaries); - } + if (roll <= probabilityBFS) { BFS(gameBoard, source, boundaries); } + else { DFS(gameBoard, source, boundaries); } // Create path for food path.push(botPathUnsanitized.top()); botPathUnsanitized.pop();