# Started 8/28/25 
#

import random
import dicegame

#Start Main Program
seed = "seed"

while not (seed.isdigit() and len(seed)==8):
    seed = input("Enter an 8 digit seed number, or just hit enter to have one randomly generated:  ")
    if seed == "": 
        seed=str(random.randint(10000000,99999999))
seed = int(seed)

turn = 1

print("Welcome to Competitive Yahtzee Lite, seed is ",seed)
game = dicegame.gamestate(seed)

while(game.getTurnsPlayed() >=6):

    game.genCurrentHand(6)
    print(f"Current hand is {game.getCurrentHand()}")    
    
    game.modifyHand()
    
    game.scoreHand()
        
    game.incTurn()




