It's a game. A crazy one. A really crazy one.
We were doing it friday evening, drinking like nuts, and something in my mind popped up, and I thought:
We should code the algorithm for this game
In fact, it seemed really stupid and obvious. But thinking about it more and more, I discovered that it's not so simple at all…
And if you want to code it elegantly and concisely, you have to think about it for some time.
So, I took this -Ofun opportunity, and turned it, as I promised to Zoso, into a Games::BonDigi CPAN module.
Enjoy!