Hey I downloaded the doc as well current source code.
What you want I rewrite exactly? Whole code or just part of the system?
I already made casino wars and dice game, they are very cool code, I'm not new to this.
I use PHP, bootstrap, mysql and some jquery