| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Based on the book Artificial Intelligence: A Modern Approach, and python repository provided.
main.py - main file to be run from command prompt
QueensEnv(ironment):
A board with 8 queens on it is encoded by their y coordinates, assuming there is exactly one queen in each column. Simple plot utility plot_board() is provided in StatsModule.py. For example, board encoded as [0,1,2,3,4,5,7,7] will render to:
![sample_board.png][./sample_board.png]
This code requires Python 3.4 or later, and does not run in Python 2. You can install Python or use a browser-based Python interpreter such as repl.it. You can run the code in an IDE, or from the command line with python -i filename.py where the -i option puts you in an interactive loop where you can run Python functions. See jupyter.org for instructions on setting up your own Jupyter notebook environment, or run the notebooks online with try.jupiter.org.
| Back | FazBrowse Home | New Git URL |