Skip to main content

A Summary of AI Techniques covered in cap 6635

Project description

CAP6635 Artificial Intelligence

Tests PyPI version

A summary of the AI techniques explored in Dr. Zhu's AI class

Structure of Package

  • cap6635.agents define the different search and decision-making algorithms.
    • See sub-directories for more details on the agents
  • cap6635.environment creates and populates the world with various obstacles or other states.
  • cap6635.utilities hosts various helper functions for searching, environment manipulation, animation and more.

Development setup

pip install -r requirements.txt cap6635

AI Examples

Vacuums

Run the vacuums.py example with the optional paramters. The output gets saved as a vacuum?.gif animation.

# Type of agent defaults to random type (if not provided)
# 1 --> Simple Reflex Vacuum
# 2 --> Model-based Vacuum
# 3 --> Goal-based Vacuum
# World Height & Width defaults to random int (if not provided)

python 1_vacuums.py [type_of_agent] [height_of_world] [width_of_world]

n-Queens

# Hill Climbing
python 2_hill_climbing.py [number_of_queens]

# Simulated Annealing
python 3_simulated_annealing.py [number_of_queens]

# Genetic Algorithm
python 4_genetic.py [number_of_queens]

Tic Tac Toe

# Minimax + Alpha-Beta Pruning
# Algorithm {1 --> Minimax, 0 --> Alpha-Beta Pruning}
# First Player {1 --> Human, 2 --> AI}
python 5_minimax.py [Algorithm] [First Player]

# e.g. Minimax (Alpha-Beta Pruning) - Player is X
python 5_minimax.py 0 1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cap6635-0.0.8.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

cap6635-0.0.8-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file cap6635-0.0.8.tar.gz.

File metadata

  • Download URL: cap6635-0.0.8.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cap6635-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c550e1d505939b7320a8d97b598bfed8c4f37a4c53162798486868761c854f04
MD5 00642f7af2d101795659fadbfe8cf1b5
BLAKE2b-256 e46a58a69bbb8af5befd5161216e99cf6290c5e5f983c9c421fe65a7b36b97fc

See more details on using hashes here.

File details

Details for the file cap6635-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: cap6635-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cap6635-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fe1b393d473c06fdaca8b5986cb0fb7902894472ac94f81ecdf0be5d6789a8b3
MD5 a00d7f8dac2af3d132a855a1adf9f1b6
BLAKE2b-256 b9e491fd020d8b70267dc7e3e3d74000b08843e35ffc01da845a5285d5675d6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page