This is a simple implementation of the Wave Function Collapse algorithm in DragonRuby. It's a work in progress, but it's already capable of generating some interesting patterns.
git clone https://github.com/pusewicz/wave-function-collapse-dragonruby.git
cd wave-function-collapse-dragonruby
/path/to/your/dragonruby .