# File: ChapterControlFunc/gameDiceBreak.py """ Roll dies till equal dies Roll dies: 1 - 3 Roll dies: 5 - 6 Roll dies: 3 - 4 Roll dies: 1 - 1 """ import random def main(): print("Roll dies till double ") d1,d2 =0,1 while True: d1 = random.randrange(1,7) d2 = random.randrange(1,7) print("Roll dies: ",d1,'-',d2) if ( d1 == d2 ): break main()