A dice game framework