Skip to main content

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

Release files for cap6635 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cap6635 0.0.8
File Size Uploaded
cap6635-0.0.8.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cap6635 0.0.8
File Interpreter ABI Platform
cap6635-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 56.5 kB

Release files / cap6635-0.0.8.tar.gz

Download URL cap6635-0.0.8.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c550e1d505939b7320a8d97b598bfed8c4f37a4c53162798486868761c854f04
BLAKE2b-256 checksum
How to use checksums
e46a58a69bbb8af5befd5161216e99cf6290c5e5f983c9c421fe65a7b36b97fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / cap6635-0.0.8-py3-none-any.whl

Download URL cap6635-0.0.8-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe1b393d473c06fdaca8b5986cb0fb7902894472ac94f81ecdf0be5d6789a8b3
BLAKE2b-256 checksum
How to use checksums
b9e491fd020d8b70267dc7e3e3d74000b08843e35ffc01da845a5285d5675d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page