Coding: Minesweeper Classes

Previous page Next page

Minestein class and function names

class SGG: 
class SGImage:
 def __init__(self):
class SGCell: 
 def __init__(self, cell_index):
 def reset(self):
 def hide(self): 
 def activate_rim_cell(self):
 def deactivate_rim_cell(self): 
 def is_active_rim_cell(self):  
 def mine_cell(self):  
 def is_mined(self):
 def toggle_flag(self):
 def bad_flag(self):
 def is_flagged(self): 
 def is_mined(self):
 def is_hidden(self):  
 def toggle_expose(self): 
 def hint(self): 
 def is_hint(self): 
 def del_hint(self):
 def set_neighbours(self):
 def get_neighbours(self):
 def get_mine_count(self):
 def print_cell(self): 
class SGCells:
 def __init__(self):
 def reset(self):
 def print_cells(self):
 def init_hints(self): 
 def add_hint(self, hint):
 def delete_hint(self, cell_index):
 def load_hints(self, index_set, hint_type, algorithm): 
 def hint_count(self): 
 def list_hints(self): 
 def is_in_hints(self, cell_index):
 def next_hint(self):  
 def find_zeros(self, clicked_cell_index):  
 def expose_cell(self, cell_index):
 def is_rim_cell(self, cell_index):
 def activate_rim_cells(self):  
 def deactivate_rim_cells(self):
 def list_rim_cells(self):
 def remove_rim_cell(self, cell_index):  
 def check_rim_cell(self, cell_index):
 def check_rim_cell_2(self, cell_index): 
 def flag_cell(self, cell_index):  
 def get_zeros(self):  
 def difficulty(self): 
 def bang(self, clicked_cell_index):  
 def nobang(self):  
 def new_game_1(self, clicked_cell_index):  
 def new_game_2(self, mine_indexes):  
 def is_predictable(self, clicked_cell_index): 
 def get_mine_counts(self, box):
 def get_visibility_map(self, box):
 def get_pattern_col(self, pattern, column):
 def print_exposed_grid(self):  
 def print_grid(self): 
 def count_mines(self):
 def analyse(self): 
 def analyse_1(self):  
 def analyse_element_1(self, scored, cell_index): 
 def get_box(self, test_cell_index):  
 def analyse_element_2(self, box, mine_counts, visibility_map,cell_index):
 def analyse_2(self):  
class SGWidget(Frame): 
 def __init__(self, parent=None):# attach to top-level? 
  Frame.__init__(self, parent)  # do superclass init 
 def init_fonts(self): 
 def bits(self): 
 def set_toolbar_images(self, job):
 def init_game(self):  
 def start_clock(self):
 def stop_clock(self): 
 def make_SGGridWidget(self):
 def check_flags(self):
 def make_SGCellWidget(self, cell_index):
  def cell_button_handler(event, self=self, cell_index=cell_index): 
 def unexpose(self):
 def display_new_grid(self, cell_index): 
 def generate_new_puzzle(self, clicked_cell_index):  
 def show_answer(self):
 def show_solution(self): 
 def cell_button_despatcher (self, event, cell_index):  
 def update_SGGridWidget(self): 
 def makeMenuBar(self):
 def fileMenu(self):
 def serviceFilemenu(self,menu_index):
 def set_menu_states(self, current_state, choices):  
 def quit(self): 
 def makeCounterbar(self):
  def toolbar_button_handler(event, self=self, button=0):  
  def toolbar_button_handler(event, self=self, button=0):  
  def toolbar_button_handler(event, self=self, button=1):  
  def toolbar_button_handler(event, self=self, button=1):  
  def toolbar_button_handler(event, self=self, button=2):  
  def toolbar_button_handler(event, self=self, button=2):  
  def toolbar_button_handler(event, self=self, button=3):  
  def toolbar_button_handler(event, self=self, button=3):  
 def update_counter(self):
 def show_mine_count(self):  
 def show_difficulty(self):  
 def tick(self): 
 def zero_counter(self):
 def give_hint(self):
 def hint_on(self, hint):
 def hint_off(self):
 def help_buttons_on(self):
 def help_buttons_off(self):
 def hint_is_on(self):
 def service_toolbar(self, button, mouse_button):
 def update_toolbar(self):
 def load_preferences(self):
 def get_result(self, t, starts, ends, doit):
 def result_io(self, do_input):
 def do_configure(self):
 def do_stats(self):
class Stats_record:
 def __init__(self):
class Show_stats(Toplevel):
 def __init__(self):
 def good_record(self, record):
 def load_listbox(self):
 def set_player(self, player):
 def set_game(self, game):
 def set_sort_item(self, sort_item):
 def do_sort(self):
class ConfigureSG(Toplevel):
 def __init__(self):
  def s_button_handler(event, self=self, standard=0):
  def s_button_handler(event, self=self, standard=1):
  def s_button_handler(event, self=self, standard=2):
  def button_handler(event, self=self):
  def button_handlers(event, self=self):
 def set_player(self, player):
 def do_s_button_handler(self, standard):
 def save_settings(self):
 def apply_configure(self):

Last updated: 2012-10-28    Sitemap