Definition at line 13 of file gui_c4.py.
◆ __init__()
bitbully.gui_c4.GuiC4.__init__ |
( |
| self | ) |
|
◆ check_winner()
bitbully.gui_c4.GuiC4.check_winner |
( |
| self, |
|
|
| board ) |
Check for Win or draw.
Definition at line 456 of file gui_c4.py.
◆ computer_move()
bitbully.gui_c4.GuiC4.computer_move |
( |
| self | ) |
|
◆ create_board()
bitbully.gui_c4.GuiC4.create_board |
( |
| self | ) |
|
◆ create_buttons()
bitbully.gui_c4.GuiC4.create_buttons |
( |
| self | ) |
|
◆ create_column_labels()
bitbully.gui_c4.GuiC4.create_column_labels |
( |
| self | ) |
|
◆ create_control_buttons()
bitbully.gui_c4.GuiC4.create_control_buttons |
( |
| self | ) |
|
◆ destroy()
bitbully.gui_c4.GuiC4.destroy |
( |
| self | ) |
|
◆ get_fig_size_px()
bitbully.gui_c4.GuiC4.get_fig_size_px |
( |
| self | ) |
|
◆ get_img_idx()
bitbully.gui_c4.GuiC4.get_img_idx |
( |
| self, |
|
|
| col, |
|
|
| row ) |
Get the index of the image to paint.
This corresponds to the last token in the column
Definition at line 319 of file gui_c4.py.
◆ get_widget()
bitbully.gui_c4.GuiC4.get_widget |
( |
| self | ) |
|
◆ insert_token()
bitbully.gui_c4.GuiC4.insert_token |
( |
| self, |
|
|
| col, |
|
|
| reset_redo_list = True ) |
◆ is_legal_move()
bitbully.gui_c4.GuiC4.is_legal_move |
( |
| self, |
|
|
| col ) |
◆ on_field_click()
bitbully.gui_c4.GuiC4.on_field_click |
( |
| self, |
|
|
| event ) |
◆ paint_token()
bitbully.gui_c4.GuiC4.paint_token |
( |
| self | ) |
|
◆ popup()
bitbully.gui_c4.GuiC4.popup |
( |
| self, |
|
|
| text ) |
◆ redo_move()
bitbully.gui_c4.GuiC4.redo_move |
( |
| self | ) |
|
◆ reset()
bitbully.gui_c4.GuiC4.reset |
( |
| self | ) |
|
◆ undo_move()
bitbully.gui_c4.GuiC4.undo_move |
( |
| self | ) |
|
◆ update_insert_buttons()
bitbully.gui_c4.GuiC4.update_insert_buttons |
( |
| self | ) |
|
◆ bitbully_agent
bitbully.gui_c4.GuiC4.bitbully_agent = bitbully_core.BitBully(db_path) |
◆ ims
bitbully.gui_c4.GuiC4.ims = False |
◆ is_busy
bool bitbully.gui_c4.GuiC4.is_busy = False |
◆ last_event_time
bitbully.gui_c4.GuiC4.last_event_time = time.time() |
◆ m_axs
bitbully.gui_c4.GuiC4.m_axs = axs |
◆ m_board_size
float bitbully.gui_c4.GuiC4.m_board_size = 3.5 |
◆ m_control_buttons
dict bitbully.gui_c4.GuiC4.m_control_buttons = {} |
◆ m_fig
bitbully.gui_c4.GuiC4.m_fig = fig |
◆ m_gameover
bool bitbully.gui_c4.GuiC4.m_gameover = False |
◆ m_height
bitbully.gui_c4.GuiC4.m_height = np.zeros(7, dtype=np.int32) |
◆ m_insert_buttons
bitbully.gui_c4.GuiC4.m_insert_buttons = True |
◆ m_logger
bitbully.gui_c4.GuiC4.m_logger = logging.getLogger(self.__class__.__name__) |
◆ m_movelist
bitbully.gui_c4.GuiC4.m_movelist = [] |
◆ m_n_col
bitbully.gui_c4.GuiC4.m_n_col = 6, 7 |
◆ m_n_row
bitbully.gui_c4.GuiC4.m_n_row |
◆ m_png
dict bitbully.gui_c4.GuiC4.m_png |
Initial value:= {
0: {"plain": png_empty, "corner": png_empty_m, "underline": png_empty_r},
1: {"plain": png_yellow, "corner": png_yellow_m},
2: {"plain": png_red, "corner": png_red_m},
}
Definition at line 49 of file gui_c4.py.
◆ m_redolist
bitbully.gui_c4.GuiC4.m_redolist = [] |
◆ notify_output
bitbully.gui_c4.GuiC4.notify_output = widgets.Output() |
|
static |
◆ output
bitbully.gui_c4.GuiC4.output = Output() |
The documentation for this class was generated from the following file: