Learn to maximize your edge: a gambling framework expose