n-puzzle/source/config.py

9 lines
129 B
Python
Raw Normal View History

2020-11-22 17:01:12 +00:00
import heuristics
is_greedy = False
goal = []
heuristic_fn = None
def calc_fScore(h, g):
return h if is_greedy else g + h