From 0ce07fa88d4a34042f3bb251ca2ae1b66d7c834c Mon Sep 17 00:00:00 2001 From: Gregory <56975502+Trimutex@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:35:23 -0500 Subject: [PATCH] Minor settings adjustments --- src/botinterface.cpp | 2 +- src/playerinterface.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/botinterface.cpp b/src/botinterface.cpp index 6545e41..9843479 100755 --- a/src/botinterface.cpp +++ b/src/botinterface.cpp @@ -41,7 +41,7 @@ namespace snakeplusplus void AISnake::GetNewPath(const std::vector< std::vector >& gameBoard, const sf::Vector2f& source, const sf::Vector2f& boundaries, const int snakeSize) { // Search for food - if (snakeSize < 160) { + if (snakeSize < 135) { BFS(gameBoard, source, boundaries); } else { DFS(gameBoard, source, boundaries); diff --git a/src/playerinterface.hpp b/src/playerinterface.hpp index adcebe1..861a2b6 100755 --- a/src/playerinterface.hpp +++ b/src/playerinterface.hpp @@ -30,7 +30,7 @@ namespace snakeplusplus sf::RectangleShape drawObject; sf::Event event; bool isWindowAlive; - sf::Time delay = sf::milliseconds(5); + sf::Time delay = sf::milliseconds(15); }; }