https://github.com/Someguy123/satoshidice-phpThis was just something I've quickly set up, everything you need to know is in the README, and the code is (mostly) documented in comments aswell.
function.php contains the PHP version of the number generator that satoshidice uses, aswell as a game simulator that uses that function.
simulator.php is a martingale bot that uses the function.php dice simulator and is mostly customizable.
Released under UNLICENSE (public domain) so you can use it in any way you want to without issues