From 90bd5ca05bea4dbeaaeff5cbe13b5671da420c82 Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 25 Jul 2025 17:04:21 +0300 Subject: July update Added const qualifiers is_next_to_empty_box() became visible to other files(). The size of the main window has been changed. Checking whether the A* algorithm has been launched before starting a new game or the same A* algorithm. Fixed indentation in lambda expressions. The initial node is added to open_queue without additional creation of dynamic memory (the address of the object field is taken). Fixed PQ_cont.erase(). IsNearEmptyBox was removed(). EqualNode moved to the Node class. --- gameplay.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gameplay.hpp') diff --git a/gameplay.hpp b/gameplay.hpp index 0069772..9c26f5b 100644 --- a/gameplay.hpp +++ b/gameplay.hpp @@ -4,6 +4,8 @@ #include "puzzle.hpp" void press_button_callback(Fl_Widget *w, void *params); +bool is_next_to_empty_box(GameParams::coordinates empty_box_pos, + GameParams::coordinates current_pos); class PuzzleGame { public: -- cgit v1.2.3