hirethissnake/2018

[Snake] Board.getNodesWithPriority() returns top nodes in reverse order

Closed this issue · 0 comments

Expect: Board function getNodesWithPriority() returns highest priority nodes from start to end in priority order (e.g. [start, start - 1, ..., end + 1, end]).

Actual: nodes returned in reverse priority order (e.g. [end, end + 1, ..., start - 1, start]).

Suggested fix: reverse return statement using [::-1]