Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cpp/8puzzle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <new>

#include <ctype.h>

// Configuration
Expand Down Expand Up @@ -668,7 +665,9 @@ int main( int argc, char *argv[] )

unsigned int SearchState;

#if DEBUG_LISTS
unsigned int SearchSteps = 0;
#endif

do
{
Expand Down Expand Up @@ -711,7 +710,10 @@ int main( int argc, char *argv[] )
astarsearch.CancelSearch();
}
#endif

#if DEBUG_LISTS
SearchSteps++;
#endif
}
while( SearchState == AStarSearch<PuzzleState>::SEARCH_STATE_SEARCHING );

Expand Down
6 changes: 0 additions & 6 deletions cpp/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ tests : tests.cpp 8puzzle findpath minpathbucharest

test: tests
./tests