Skip to content
This repository
Browse code

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

…e_walk sample
  • Loading branch information...
commit e2acba3ee7bf8ed34568e7c8f3b5278439493153 1 parent d99c328
Juan Pedro Fisanotti authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. 16  samples/search/game_walk.py
16  samples/search/game_walk.py
@@ -19,14 +19,14 @@
19 19
 MAP = [list(x) for x in MAP.split("\n") if x]
20 20
 
21 21
 COSTS = {
22  
-    "up": 10,
23  
-    "down": 10,
24  
-    "left": 10,
25  
-    "right": 10,
26  
-    "up left": 14,
27  
-    "up right": 14,
28  
-    "down left": 14,
29  
-    "down right": 14,
  22
+    "up": 1.0,
  23
+    "down": 1.0,
  24
+    "left": 1.0,
  25
+    "right": 1.0,
  26
+    "up left": 1.4,
  27
+    "up right": 1.4,
  28
+    "down left": 1.4,
  29
+    "down right": 1.4,
30 30
 }
31 31
 
32 32
 

0 notes on commit e2acba3

Please sign in to comment.
Something went wrong with that request. Please try again.