This is a puzzle solver for "‎Bubble Sort Color Puzzle Game" or "Ball Sort Puzzle". It is a remake of my previous sketchy p5.js project "Bubble Sort Puzzle Solver" with a better UI, much cleaner code, ...
I use a simple plain string to represent the state of the game. The state string consists of: _ to denote an Empty Slot x to denote a Ball, where x is the color of the Ball (a space) to delimit one ...