Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-578386.py
File
recipe-578386.py
recipes/Python/578386_Knights_Tour_Map_using_Warnsdorffs/recipe-578386.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Knight's Tour Map using Warnsdorff's Rule
2
# http://en.wikipedia.org/wiki/Knight's_tour
3
# FB - 20121217
4
from
heapq
import
heappush, heappop
# for priority queue
Callers
nothing calls this directly
Calls
7
range
Function · 0.85
str
Function · 0.85
new
Method · 0.45
load
Method · 0.45
time
Method · 0.45
resize
Method · 0.45
save
Method · 0.45
Tested by
no test coverage detected