Pretty sure I've heard of this manner of gambling before. Not a bad idea, and I don't think it would be terribly difficult to code. Either profit sharing or a single payment would be fine with me if I made this for you, though I'm hesitant to name a price before exploring the project more fully.