SYMBOL INDEX (84 symbols across 9 files) FILE: examples/deep_q_half_pong_player.py class DeepQHalfPongPlayer (line 19) | class DeepQHalfPongPlayer(PyGamePlayer): method __init__ (line 36) | def __init__(self, method get_keys_pressed (line 92) | def get_keys_pressed(self, screen_array, reward, terminal): method _choose_next_action (line 142) | def _choose_next_action(self): method _train (line 158) | def _train(self): method _create_network (line 187) | def _create_network(self): method _key_presses_from_action (line 227) | def _key_presses_from_action(action_set): method get_feedback (line 236) | def get_feedback(self): method start (line 245) | def start(self): FILE: examples/deep_q_pong_player.py class DeepQPongPlayer (line 12) | class DeepQPongPlayer(PongPlayer): method __init__ (line 28) | def __init__(self, checkpoint_path="deep_q_pong_networks", playback_mo... method get_keys_pressed (line 78) | def get_keys_pressed(self, screen_array, reward, terminal): method _choose_next_action (line 132) | def _choose_next_action(self): method _train (line 148) | def _train(self): method _create_network (line 178) | def _create_network(): method _key_presses_from_action (line 228) | def _key_presses_from_action(action_set): FILE: examples/pong_player.py class PongPlayer (line 5) | class PongPlayer(PyGamePlayer): method __init__ (line 6) | def __init__(self, force_game_fps=10, run_real_time=False): method get_keys_pressed (line 14) | def get_keys_pressed(self, screen_array, feedback, terminal): method get_feedback (line 18) | def get_feedback(self): method start (line 29) | def start(self): FILE: examples/tetris_player.py class TetrisPlayer (line 6) | class TetrisPlayer(PyGamePlayer): method __init__ (line 7) | def __init__(self): method get_keys_pressed (line 31) | def get_keys_pressed(self, screen_array, feedback, terminal): method get_feedback (line 42) | def get_feedback(self): method start (line 49) | def start(self): FILE: games/half_pong.py function run (line 8) | def run(screen_width=40., screen_height=40.): FILE: games/mini_pong.py function run (line 8) | def run(screen_width=40., screen_height=40.): FILE: games/tetris.py function main (line 158) | def main(): function runGame (line 179) | def runGame(): function makeTextObjs (line 302) | def makeTextObjs(text, font, color): function terminate (line 307) | def terminate(): function checkForKeyPress (line 312) | def checkForKeyPress(): function showTextScreen (line 324) | def showTextScreen(text): function checkForQuit (line 347) | def checkForQuit(): function calculateLevelAndFallFreq (line 356) | def calculateLevelAndFallFreq(score): function getNewPiece (line 363) | def getNewPiece(): function addToBoard (line 374) | def addToBoard(board, piece): function getBlankBoard (line 382) | def getBlankBoard(): function isOnBoard (line 390) | def isOnBoard(x, y): function isValidPosition (line 394) | def isValidPosition(board, piece, adjX=0, adjY=0): function isCompleteLine (line 407) | def isCompleteLine(board, y): function removeCompleteLines (line 415) | def removeCompleteLines(board): function convertToPixelCoords (line 437) | def convertToPixelCoords(boxx, boxy): function drawBox (line 443) | def drawBox(boxx, boxy, color, pixelx=None, pixely=None): function drawBoard (line 456) | def drawBoard(board): function drawStatus (line 468) | def drawStatus(score, level): function drawPiece (line 482) | def drawPiece(piece, pixelx=None, pixely=None): function drawNextPiece (line 495) | def drawNextPiece(piece): FILE: pygame_player.py function function_intercept (line 8) | def function_intercept(intercepted_func, intercepting_func): class PyGamePlayer (line 34) | class PyGamePlayer(object): method __init__ (line 35) | def __init__(self, force_game_fps=10, run_real_time=False, pass_quit_e... method get_keys_pressed (line 66) | def get_keys_pressed(self, screen_array, feedback, terminal): method get_feedback (line 78) | def get_feedback(self): method start (line 88) | def start(self): method stop (line 105) | def stop(self): method playing (line 121) | def playing(self): method playing (line 129) | def playing(self, value): method get_ms_per_frame (line 137) | def get_ms_per_frame(self): method get_game_time_ms (line 140) | def get_game_time_ms(self): method _on_time_clock (line 143) | def _on_time_clock(self, real_clock, *args, **kwargs): method _on_screen_update (line 146) | def _on_screen_update(self, _, *args, **kwargs): method _on_event_get (line 156) | def _on_event_get(self, _, *args, **kwargs): method __enter__ (line 193) | def __enter__(self): method __exit__ (line 197) | def __exit__(self, exc_type, exc_val, exc_tb): class _FixedFPSClock (line 200) | class _FixedFPSClock(object): method __init__ (line 201) | def __init__(self, pygame_player, real_clock): method tick (line 205) | def tick(self, _=None): method tick_busy_loop (line 211) | def tick_busy_loop(self, _=None): method get_time (line 217) | def get_time(self): method get_raw_time (line 220) | def get_raw_time(self): method get_fps (line 223) | def get_fps(self): FILE: tests/test_pygame_player.py class DummyPyGamePlayer (line 7) | class DummyPyGamePlayer(PyGamePlayer): method __init__ (line 8) | def __init__(self, force_game_fps=10, run_real_time=False): method get_keys_pressed (line 11) | def get_keys_pressed(self, screen_array, feedback, terminal): method get_feedback (line 14) | def get_feedback(self): class TestPyGamePlayer (line 18) | class TestPyGamePlayer(TestCase): method setUp (line 22) | def setUp(self): method tearDown (line 26) | def tearDown(self): method test_restores_pygame_methods_after_exit (line 29) | def test_restores_pygame_methods_after_exit(self): method test_fixing_frames_per_second (line 43) | def test_fixing_frames_per_second(self): method test_get_keys_pressed_method_sets_event_get (line 57) | def test_get_keys_pressed_method_sets_event_get(self): method test_get_screen_buffer (line 70) | def test_get_screen_buffer(self): method test_run_real_time (line 79) | def test_run_real_time(self):