from random import randrange
import pygame


class Die:

    #initializes first roll to [1,1]
    def __init__(self):
        self.numberRolls = [1,1]
        self.double_counter = 0

    #randomly selects two numbers between 1-6 to simulate two die rolling and returns the number
    def roll(self):
        self.numberRolls[0] = randrange(1,6,1)
        self.numberRolls[1] = randrange(1,6,1)

        if self.numberRolls[0] == self.numberRolls[1]:
            self.double_counter += 1

        return self.numberRolls

c9620627368b67731fc56b08c3d2df4e36fe7f92
<mask token>

<mask token>


class Die:
    <mask token>

    def roll(self):
        self.numberRolls[0] = randrange(1, 6, 1)
        self.numberRolls[1] = randrange(1, 6, 1)
        if self.numberRolls[0] == self.numberRolls[1]:
            self.double_counter += 1
        return self.numberRolls

<mask token>


class Die:

    def __init__(self):
        self.numberRolls = [1, 1]
        self.double_counter = 0

    def roll(self):
        self.numberRolls[0] = randrange(1, 6, 1)
        self.numberRolls[1] = randrange(1, 6, 1)
        if self.numberRolls[0] == self.numberRolls[1]:
            self.double_counter += 1
        return self.numberRolls

from random import randrange
import pygame


class Die:

    def __init__(self):
        self.numberRolls = [1, 1]
        self.double_counter = 0

    def roll(self):
        self.numberRolls[0] = randrange(1, 6, 1)
        self.numberRolls[1] = randrange(1, 6, 1)
        if self.numberRolls[0] == self.numberRolls[1]:
            self.double_counter += 1
        return self.numberRolls

from random import randrange
import pygame


class Die:

    #initializes first roll to [1,1]
    def __init__(self):
        self.numberRolls = [1,1]
        self.double_counter = 0

    #randomly selects two numbers between 1-6 to simulate two die rolling and returns the number
    def roll(self):
        self.numberRolls[0] = randrange(1,6,1)
        self.numberRolls[1] = randrange(1,6,1)

        if self.numberRolls[0] == self.numberRolls[1]:
            self.double_counter += 1

        return self.numberRolls
