This assignment will cover some of the concepts discussed in the Adversarial Search lectures. You will be implementing game playing agents for a variant of the game Isolation.
Table of Contents
Setup
Jupyter
Jupyter Tips
FAQ
IDE
Setup
For this assignment, we highly recommend you to create a new environment just for this one assignment.
conda create -n ai_env_a2 python=3.9
Activate the environment: conda activate ai_env_a2
In case you used a different environment name, to get a list of all environments you have on your machine, you can run conda env list.
Install correct package versions that will be used for visualising the game board.
cd assignment_2 pip install -r requirements.txt
Jupyter
python -m ipykernel install –user –name ai_env_a2 –display-name “Python 3.9 (AI-A2)”
Further instructions are provided in the notebook.ipynb. Run:
jupyter notebook
Once started you can access http://localhost:8888 in your browser.
Jupyter Tips
1. My Jupyter notebook does not seem to be starting up or my kernel is not starting correctly.
Ans: This probably has to do with activating virtual environments. If you followed the setup instructions exactly, then you should activate your conda environment using conda activate <environment_name> from the Anaconda Prompt and start Jupyter Notebook from there.
2. I was running cell xxx when I opened up my notebook again and something or the other seems to have broken.
Ans: This is one thing that is very different between IDEs like PyCharm and Jupyter Notebook. In Jupyter, every time you open a notebook, you should run all the cells that a cell depends on before running that cell. This goes for cells that are out of order too (if cell 5 depends on values set in cell 4 and 6, you need to run 4 and 6 before 5). Using the “Run All” command and its variants (found in the “Cell” dropdown menu above) should help you when you’re in a situation like this.
3. The value of a variable in one of my cells is not what I expected it to be? What could have happened?
FAQ
1. What depth does the server call my search algorithms with?
Ans: The server will not pass a depth value to your CustomPlayer; whatever you set as the default parameter value will be used on Gradescope.
Modifying this default value is extremely important in changing the performance of your agent.
2. How does Gradescope set up and run each game?
Ans: Gradescope will run 20 games in order to determine the win ratio. Your player (CustomPlayer) will be K1 for 10 of those games and K2 for 10 of those games. Each player has 1 second to make each move and the first two moves (i.e. each player’s starting location) will be randomized.
3. Can we use multithreading of multiprocessing?
Ans: Sorry, we will not allow multithreading or multiprocessing on this Assignment. It isn’t necessary to successfully complete the Assignment.
4. I have a question about the isolation API or the workings of the framework. Where should I learn more?
5. Can I add more functions to replace some of the existing functions? Can I import other packages as well?
Ans: No. Please do not add any more functions or imports. You should be able to finish the assignment by replacing the NotImplementedError. A more in-depth FAQ will be posted on Ed
IDE
In case you are willing to use IDE (e.g. Pycharm) to implement your assignment in .py file. Please run:
bash python helpers/notebook2script.py submission
You will get autogenerated submission/submission.py file where you can write your code. However, make sure you have gone through the instructions in the notebook.ipynb at least once.
Assignment, CS6601, Isolation, Rook, solved
[SOLVED] Cs6601 assignment 2 – two rook isolation
$25
File Name: Cs6601_assignment_2_____two_rook_isolation.zip
File Size: 395.64 KB
Only logged in customers who have purchased this product may leave a review.

![[SOLVED] Cs6601 assignment 2 – two rook isolation](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] Geography 210 Geographic Perspectives on Earth System Science Assignment 5 Statistics](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.