This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from copy import deepcopy | |
MIN_ROW, MAX_ROW = 0, 9 | |
MIN_COLUMN, MAX_COLUMN = 0, 9 | |
total_successful_combinations = 0 | |
total_failed_combinations = 0 | |
Field = namedtuple('Field', 'row, column') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import choice, shuffle | |
class Monty_Hall: | |
"""This represents the initial puzzle setup with three doors.""" | |
def __init__(self): | |
self.doors_to_chose_from = ["goat_1", "goat_2", "car"] | |
shuffle(self.doors_to_chose_from) | |
def __call__(self, change=True): |