This file contains hidden or 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 matt_q1_q2 import * | |
| class EightPuzzle: | |
| ACTIONS = ['U', 'D', 'L', 'R'] | |
| def __init__(self, init_state, goal_state): | |
| self.size = 3 | |
| self.init_state = init_state | |
| self.goal_state = goal_state |
This file contains hidden or 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
| import sys | |
| import heapq | |
| import time | |
| class GridWorld: | |
| ACTIONS = ['U', 'D', 'L', 'R'] | |
| def __init__(self): | |
| self.n_rows = 9 | |
| self.n_cols = 9 |
This file contains hidden or 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
| CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \ | |
| LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \ | |
| PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \ | |
| pyenv install -v 2.7.11 |
This file contains hidden or 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
| /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
| /* ========================================================================== | |
| HTML5 display definitions | |
| ========================================================================== */ | |
| /** | |
| * Correct `block` display not defined in IE 8/9. | |
| */ |