On names and parameter orders of coodinates #50
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
Hi,
It is my first time to use python-pathfinding, it's nice but sth make me confused...
To be brief, I am writing a bot to play a game, this is what I try to do tonight:
Some names of variables in the code above are provided by the organizer of the contest I am taking part in.
My code above failed to get correct answer until I rewite
(a)
as:or rewrite
(b)
as:Later, I refer to the
docs
but find nothing about parameter order.As I look into the grid.py i found:
Below is what I suggest: Rearrangeing parameters
x
andy
as the order they appear in the List indexes:or rename them to the form
xi
wherei
is the order they appear in the indexes:so that People who use the
pathfinding
can access anode
not according to a specific name convention, but the order they pass parameters to these functions before.The text was updated successfully, but these errors were encountered: