This is a small cave generator that uses the drunkards walk algorithm. I ported it over from C++ to Javascript. You can press "Generate New Cave" to make a new cave and you can use the controls at the bottom to move the red square.