Priority Queue

I’m new to coding in Ruby, and wanted to try and implement a bot that needs some simple pathfinding. Many pathfinding algorithms use priority queues, and since Ruby’s standard libraries don’t have one, the only option seems to be writing one myself.

Is there a better way that I’m overlooking?

I’m afraid there’s no better way than writing your own priority queue :man_shrugging: