def get_column(year):
	""" If the year roll is 4, 5, or 6, returns a column index (0-10).
	"""

	if year in [4, 5, 6]:
		return dice.roll_2d6() - 2
	else:
		return False
示例#2
0
def get_column(year):
    """ If the year roll is 4, 5, or 6, returns a column index (0-10).
	"""

    if year in [4, 5, 6]:
        return dice.roll_2d6() - 2
    else:
        return False
def get_row(year):
	""" If the year roll is 2, 3 or 6, returns a row index (0-10).
	"""

	if year in [2, 3, 6]:
		return dice.roll_2d6() - 2
	else:
		return False
示例#4
0
def get_row(year):
    """ If the year roll is 2, 3 or 6, returns a row index (0-10).
	"""

    if year in [2, 3, 6]:
        return dice.roll_2d6() - 2
    else:
        return False