This website requires JavaScript.
Explore
Help
Sign In
s452422
/
Inteligentna_smieciarka
Watch
5
Star
0
Fork
0
You've already forked Inteligentna_smieciarka
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
1c26edad6c
Inteligentna_smieciarka
/
heuristicfn.py
3 lines
100 B
Python
Raw
Normal View
History
Unescape
Escape
implemented a* instead of bfs and heuristic function
2023-05-04 20:44:35 +02:00
def
heuristicfn
(
startx
,
starty
,
goalx
,
goaly
)
:
Added visual rotation of agent, changed heuristic
2023-05-05 12:20:29 +02:00
return
abs
(
startx
-
goalx
)
+
abs
(
starty
-
goaly
)
Reference in New Issue
Copy Permalink