Probably not too difficult at all if you're prolific with teh programming... it's cool how much you can do with code. Even interact with/analyze existing games here apparently, stumbled upon this by chance just yesterday: https://www.newgrounds.com/dump/item/05e3c53ca5e3ca95b8cceb932efd9f9f
Just a little user-contributed script to figure out the probability of winning a round in said game.
motherlode00
arrg, miss deity whistle.