Android code, for poker, dice, and 520