import random

class Dice():

    def start_game(self):
        dice_num = random.randint(1,6)
        print(dice_num)

    def play_again(self):
        again = input("Do you want to roll again?")
        if again.lower() == "y":
            return True
        elif again.lower() == "n":
            return False

    def game(self):
        ask_play = input("Do you wanna roll the dice? ")
        if ask_play.lower() == "y":
            bool = True
        else:
            bool = False
        while(bool):
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print("The end")

dice = Dice()
dice.game()
1d0604a03f9a2a5220323c647f646f256e555c5d
<mask token>


class Dice:

    def start_game(self):
        dice_num = random.randint(1, 6)
        print(dice_num)

    def play_again(self):
        again = input('Do you want to roll again?')
        if again.lower() == 'y':
            return True
        elif again.lower() == 'n':
            return False

    def game(self):
        ask_play = input('Do you wanna roll the dice? ')
        if ask_play.lower() == 'y':
            bool = True
        else:
            bool = False
        while bool:
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print('The end')


<mask token>

<mask token>


class Dice:

    def start_game(self):
        dice_num = random.randint(1, 6)
        print(dice_num)

    def play_again(self):
        again = input('Do you want to roll again?')
        if again.lower() == 'y':
            return True
        elif again.lower() == 'n':
            return False

    def game(self):
        ask_play = input('Do you wanna roll the dice? ')
        if ask_play.lower() == 'y':
            bool = True
        else:
            bool = False
        while bool:
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print('The end')


<mask token>
dice.game()

<mask token>


class Dice:

    def start_game(self):
        dice_num = random.randint(1, 6)
        print(dice_num)

    def play_again(self):
        again = input('Do you want to roll again?')
        if again.lower() == 'y':
            return True
        elif again.lower() == 'n':
            return False

    def game(self):
        ask_play = input('Do you wanna roll the dice? ')
        if ask_play.lower() == 'y':
            bool = True
        else:
            bool = False
        while bool:
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print('The end')


dice = Dice()
dice.game()

import random


class Dice:

    def start_game(self):
        dice_num = random.randint(1, 6)
        print(dice_num)

    def play_again(self):
        again = input('Do you want to roll again?')
        if again.lower() == 'y':
            return True
        elif again.lower() == 'n':
            return False

    def game(self):
        ask_play = input('Do you wanna roll the dice? ')
        if ask_play.lower() == 'y':
            bool = True
        else:
            bool = False
        while bool:
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print('The end')


dice = Dice()
dice.game()

import random

class Dice():

    def start_game(self):
        dice_num = random.randint(1,6)
        print(dice_num)

    def play_again(self):
        again = input("Do you want to roll again?")
        if again.lower() == "y":
            return True
        elif again.lower() == "n":
            return False

    def game(self):
        ask_play = input("Do you wanna roll the dice? ")
        if ask_play.lower() == "y":
            bool = True
        else:
            bool = False
        while(bool):
            self.start_game()
            if self.play_again():
                bool = True
            else:
                bool = False
        print("The end")

dice = Dice()
dice.game()