Auto Topic: col

auto_col | topic

Coverage Score
1
Mentioned Chunks
38
Mentioned Docs
11

Required Dimensions

definitionpros_cons

Covered Dimensions

definitionpros_cons

Keywords

col

Relations

SourceTypeTargetW
Auto Topic: colCO_OCCURSAuto Topic: row30
Auto Topic: colCO_OCCURSAuto Topic: self27
Auto Topic: colCO_OCCURSAuto Topic: def21
Auto Topic: colCO_OCCURSAuto Topic: rows20
Auto Topic: colCO_OCCURSAuto Topic: cols18
Auto Topic: colCO_OCCURSAuto Topic: perform_move14
Auto Topic: colCO_OCCURSAuto Topic: vertical14
Auto Topic: colCO_OCCURSAuto Topic: get_board13
Auto Topic: colCO_OCCURSAuto Topic: raise8
Auto Topic: colCO_OCCURSAuto Topic: tkinter8
Auto Topic: colCO_OCCURSAuto Topic: legal_moves8
Auto Topic: colCO_OCCURSAuto Topic: valueerror7
Auto Topic: colCO_OCCURSAuto Topic: is_legal_move7
Auto Topic: colCO_OCCURSAuto Topic: len6
Auto Topic: colCO_OCCURSAuto Topic: padx6
Auto Topic: colCO_OCCURSAuto Topic: master6
Auto Topic: colCO_OCCURSAuto Topic: int6
Auto Topic: colCO_OCCURSAuto Topic: dominoesgame6
Auto Topic: colCO_OCCURSAuto Topic: import5
Auto Topic: colCO_OCCURSAuto Topic: square_size5
Auto Topic: colCO_OCCURSAuto Topic: copy4
Auto Topic: colCO_OCCURSAuto Topic: fill4
Auto Topic: colCO_OCCURSAuto Topic: scene4
Auto Topic: colCO_OCCURSAuto Topic: pack4
Auto Topic: colCO_OCCURSAuto Topic: isinstance4
Auto Topic: canvasCO_OCCURSAuto Topic: col4
Auto Topic: colCO_OCCURSPropositional Logic3
Auto Topic: colCO_OCCURSAuto Topic: start_and_goal3
Auto Topic: colCO_OCCURSAuto Topic: print3

Evidence Chunks

SourceConfidenceMentionsSnippet
assignments
CIS5210-Assignments/M2/homework2.py
0.6713elf._board) self._cols = len(self._board[0]) if self._rows else 0 def get_board(self): return self._board def perform_move(self, row, col): b = self._board rows = self._rows cols = self._cols b[row][col] = not b[row][col] if row > 0: b[row - 1][col] = not b[row - 1][col] if row + ...
assignments
CIS5210-Assignments/M3/homework3_grid_navigation_gui.py
0.67111, y1, width=1, outline="black", fill="gray50" if scene[row][col] else "white") def transform(self, row, col): x = self.square_size * (col + 0.5) y = self.square_size * (row + 0.5) return (x, y) def inverse_transform(self, event): row = int(event.y / self.square_size) col = int(e ...
assignments
CIS5210-Assignments/M4/hw4-optimized.py
0.6711d not b[row][col] and not b[row + 1][col] return col + 1 < self.cols and not b[row][col] and not b[row][col + 1] def legal_moves(self, vertical): b = self.board rows = self.rows cols = self.cols if vertical: row_limit = rows - 1 for r in range(row_limit): row1 = b[r] row2 = b[r + ...
assignments
CIS5210-Assignments/M4/homework4.py
0.6710l]) and (not b[row + 1][col]) if col + 1 >= self.cols: return False return (not b[row][col]) and (not b[row][col + 1]) def legal_moves(self, vertical): vertical = bool(vertical) b = self.board if vertical: for r in range(self.rows - 1): row = b[r] row2 = b[r + 1] for c in range(s ...
assignments
CIS5210-Assignments/M4/homework4.py
0.679... lf.board def reset(self): self.board = [[False] * self.cols for _ in range(self.rows)] def is_legal_move(self, row, col, vertical): if not isinstance(row, int) or not isinstance(col, int): return False if row < 0 or col < 0 or row >= self.rows or col >= self.cols: return False ve ...
assignments
CIS5210-Assignments/M4/hw4-optimized.py
0.679... f.board def reset(self): self.board = [[False] * self.cols for _ in range(self.rows)] def is_legal_move(self, row, col, vertical): if not isinstance(row, int) or not isinstance(col, int): return False if row < 0 or col < 0 or row >= self.rows or col >= self.cols: return False b = ...
assignments
CIS5210-Assignments/M4/homework4_dominoes_game_gui.py
0.678... rtical = True self.rows = rows self.cols = cols self.squares = [] for row in range(rows): row_squares = [] for col in range(cols): square = Square(self) square.grid(row=row, column=col, padx=1, pady=1) square.bind("<Button-1>", lambda event, row=row, col=col: self.perform_move(ro ...
assignments
CIS5210-Assignments/M2/homework2.py
0.677... r("n must be non-negative.") return n ** n def n_queens_valid(board): cols = set() diag1 = set() diag2 = set() for row, col in enumerate(board): if col in cols or (row - col) in diag1 or (row + col) in diag2: return False cols.add(col) diag1.add(row - col) diag2.add(row + col) re ...
assignments
CIS5210-Assignments/M3/homework3_tile_puzzle_gui.py
0.656n range(rows): row_tiles = [] for col in range(cols): tile = Tile(self, puzzle_board[row][col]) tile.grid(row=row, column=col, padx=1, pady=1) row_tiles.append(tile) self.tiles.append(row_tiles) self.bind("<Up>", lambda event: self.perform_move("up")) self.bind("<Down>", lambda e ...
assignments
CIS5210-Assignments/M4/homework4_dominoes_game_gui.py
0.656row, col): if self.game.is_legal_move(row, col, self.vertical): self.game.perform_move(row, col, self.vertical) self.vertical = not self.vertical self.update_squares() self.master.update_status() def update_squares(self): game_board = self.game.get_board() for row in range(self.r ...
assignments
CIS5210-Assignments/M2/homework2.py
0.635iag1 or (row + col) in diag2: return False cols.add(col) diag1.add(row - col) diag2.add(row + col) return True def n_queens_solutions(n): if n < 0: raise ValueError("n must be non-negative.") limit = (1 << n) - 1 board = [0] * n solutions = [] append = solutions.append def dfs(ro ...
assignments
CIS5210-Assignments/M3/homework3_grid_navigation_gui.py
0.635... ) self.focus_set() self.configure(highlightthickness=0) def draw_scene(self, scene): for row in range(len(scene)): for col in range(len(scene[0])): x0, y0 = col * self.square_size, row * self.square_size x1, y1 = x0 + self.square_size, y0 + self.square_size self.create_rectangle( ...
assignments
CIS5210-Assignments/M4/homework4.py
0.635... self._count_legal_moves(not root_vertical) return root_moves - opp_moves def _apply_move(self, row, col, vertical, filled): if vertical: self.board[row][col] = filled self.board[row + 1][col] = filled else: self.board[row][col] = filled self.board[row][col + 1] = filled def get_b ...
assignments
CIS5210-Assignments/M4/hw4-optimized.py
0.635... vertical): return self._count_legal_moves(root_vertical) - \ self._count_legal_moves(not root_vertical) def _apply_move(self, row, col, vertical, filled): b = self.board if vertical: b[row][col] = filled b[row + 1][col] = filled else: b[row][col] = filled b[row][col + 1] = filled ...
assignments
CIS5210-Assignments/M4/homework4.pdf
0.614thevertical parameter isTrue, then the current player intends to place a domino on squares (row, col) and (row + 1, col) . If thevertical parameter isFalse, then the current player intends to place a domino on squares(row, col) and (row, col + 1). This convention will 2 be follow ...
assignments
CIS5210-Assignments/M4/homework4.pdf
0.614... sited during the search. Recall that if the vertical parameter is True, then the current player intends to place a domino on squares (row, col) and (row + 1, col) , and if thevertical parameter is False, then the current player intends to place a domino on squares(row, col) and ( ...
assignments
CIS5210-Assignments/M4/homework4.py
0.614w][col] = filled self.board[row + 1][col] = filled else: self.board[row][col] = filled self.board[row][col + 1] = filled def get_best_move(self, vertical, limit): root_vertical = bool(vertical) if not isinstance(limit, int): raise TypeError("limit must be an integer") if limit <= ...
assignments
CIS5210-Assignments/M4/homework4_dominoes_game_gui.py
0.614... board.update_squares() self.update_status() def perform_random_move(self): if not self.game.game_over(self.board.vertical): row, col = self.game.get_random_move(self.board.vertical) self.board.perform_move(row, col) def perform_best_move(self, limit): if not self.game.game_over(s ...