Commits

O01eg committed 5d69124

Up STATIC_WORLD_ACCESS priority.

Comments (0)

Files changed (2)

 		{
 			ST_AREA_SIZE = 0, ///< Size of path's area.
 			ST_DIRS, ///< Number of used directions.
-			ST_DIR_CHANGES, ///< Number of direction changes.
 			ST_STATIC_WORLD_ACCESS, ///< Static check for world access.
+			ST_DIR_CHANGES, ///< Number of direction changes.
 			ST_MOVE_CHANGES, ///< Number of move changes.
 			ST_GOOD_MOVES, ///< Number of moves without collisions with walls.
 			ST_SUM_MOVES, ///< Number of summary moves.
 			os << "result = " << m_Result;
 			os << "result[AREA_SIZE] = " << m_Quality[ST_AREA_SIZE] << std::endl;
 			os << "result[DIRS] = " << m_Quality[ST_DIRS] << std::endl;
-			os << "result[DIR_CHANGES] = " << m_Quality[ST_DIR_CHANGES] << std::endl;
 			os << "result[STATIC_WORLD_ACCESS] = " << m_Quality[ST_STATIC_WORLD_ACCESS] << std::endl;
+			os << "result[DIR_CHANGES] = " << m_Quality[ST_DIR_CHANGES] << std::endl;
 			os << "result[MOVE_CHANGES] = " << m_Quality[ST_MOVE_CHANGES] << std::endl;
 			os << "result[GOOD_MOVES] = " << m_Quality[ST_GOOD_MOVES] << std::endl;
 			os << "result[SUM_MOVES] = " << m_Quality[ST_SUM_MOVES] << std::endl;
 				remain_steps --;
 				//std::cout << "steps: " << remain_steps << std::endl;
 			}
-			if(generation % 10 == 0)
+			if(generation % 200 == 0)
 			{
 				time_t cur = time(NULL);
 				std::cout << "\x1b[0`generation = " << generation << " (" << static_cast<double>(generation)/(cur - st_time) << "g/s) (" << (remain_steps * 100 / MAX_STEP_UNCHANGED) << "%)            ";