Open Inc0n opened 5 years ago
I don't want to touch the code as I've abandoned this project. Therefore, description is in the following. Incorporate them in your fork if you wish so.
cell_t
is "red=1, 2=green, etc."Basic_board<n, m>
is n×m cells.Board
is a type that looks like a Basic_board<n, m>
.score_t
is literally a type for a score (on how good a Board is, etc.)direction_t
is literally a type for a direction.count_basic_combo
, count the combo you get before the stones falls down for the first time.uninitialized_array
is a performance optimization. It's dirty but I couldn't get rid of it with the same performance.idastar
, which search for solutions of the given board. It reports solutions to the callback, which also serves as the evaluation heuristic.
It is frustrating to understand the project just by reading the code Is better description considered to be added ??