Skip to content

Adversarial search agent implemented to play the game of Isolation. Project for the Artificial Intelligence Nanodegree program by Udacity.

Notifications You must be signed in to change notification settings

miknoj/Build-a-Game-Playing-Agent

Repository files navigation

Build a Game-Playing Agent

Artificial Intelligence Nanodegree Program

In this project, an adversarial search agent was developed to play the game "Isolation". Isolation is a deterministic, two-player game of perfect information in which the players alternate turns moving a single piece from one cell to another on a board. Whenever either player occupies a cell, that cell becomes blocked for the remainder of the game. The first player with no remaining legal moves loses, and the opponent is declared the winner. These rules are implemented in the isolation.Board class provided in the repository.

This project uses a version of Isolation where each agent is restricted to L-shaped movements (like a knight in chess) on a rectangular grid (like a chess or checkerboard). The agents can move to any open cell on the board that is 2-rows and 1-column or 2-columns and 1-row away from their current position on the board. Movements are blocked at the edges of the board (the board does not wrap around), however, the player can "jump" blocked or occupied spaces (just like a knight in chess).

Additionally, agents will have a fixed time limit each turn to search for the best move and respond. If the time limit expires during a player's turn, that player forfeits the match, and the opponent wins.

Only the game_agent.py file was modified to complete this project.

About

Adversarial search agent implemented to play the game of Isolation. Project for the Artificial Intelligence Nanodegree program by Udacity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published