It's a famous box game, even though it is very old. Actually this is a alpha version, you can read the source code and optimise it.
You can clone this repository or download the zip.
Then open your own red console (you can built your own red console by yourself https://github.com/red/red) and
>> do %redbox.red.