Permalink
Browse files

Fixed the differences on weight between cost and heuristic on the gam…

…e_walk sample
  • Loading branch information...
1 parent d99c328 commit e2acba3ee7bf8ed34568e7c8f3b5278439493153 @fisadev fisadev committed Jan 29, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 samples/search/game_walk.py
View
16 samples/search/game_walk.py
@@ -19,14 +19,14 @@
MAP = [list(x) for x in MAP.split("\n") if x]
COSTS = {
- "up": 10,
- "down": 10,
- "left": 10,
- "right": 10,
- "up left": 14,
- "up right": 14,
- "down left": 14,
- "down right": 14,
+ "up": 1.0,
+ "down": 1.0,
+ "left": 1.0,
+ "right": 1.0,
+ "up left": 1.4,
+ "up right": 1.4,
+ "down left": 1.4,
+ "down right": 1.4,
}

0 comments on commit e2acba3

Please sign in to comment.