Skip to content

Problem Set 0: Degrees of Separation & Tic-Tac-Toe This repository contains solutions for CS50 AI's Problem Set 0: Degrees of Separation: Find the shortest path between two actors via co-stars using a breadth-first search algorithm. AI Tic-Tac-Toe: An AI Tic-Tac-Toe game using the Minimax algorithm to ensure the AI never loses.

Notifications You must be signed in to change notification settings

AMevans12/CS50-AI-Search-ps0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

CS50 AI - Problem Set 0

Welcome to the repository for CS50 AI Problem Set 0. This repository contains solutions for two main projects: Degrees of Separation and AI Tic-Tac-Toe.

Table of Contents

Introduction

This repository contains implementations for two projects from the CS50 AI course's Problem Set 0. These projects demonstrate the application of artificial intelligence techniques in solving real-world problems.

Projects

Degrees of Separation

The Degrees of Separation project involves finding the shortest path between two actors via their co-stars. This is achieved using a breadth-first search (BFS) algorithm to traverse the graph of actors and movies.

Key Features

  • Utilizes BFS to find the shortest connection between actors.
  • Demonstrates practical graph traversal techniques.
  • Calculates "degrees of separation" between actors.

Usage

To run the Degrees of Separation project:

python degrees.py CS50-AI-ps0

Replace CS50-AI-ps0 with the path to the directory containing your data files.

AI Tic-Tac-Toe

The AI Tic-Tac-Toe project features a Tic-Tac-Toe game where the computer plays optimally using the Minimax algorithm. The AI ensures it never loses, providing a challenging and engaging gameplay experience.

Key Features

  • Implements the Minimax algorithm for optimal play.
  • Ensures the AI never loses.
  • Demonstrates AI decision-making processes.

Usage

To run the AI Tic-Tac-Toe game:

python tictactoe.py

Follow the on-screen instructions to play the game against the AI.

About

Problem Set 0: Degrees of Separation & Tic-Tac-Toe This repository contains solutions for CS50 AI's Problem Set 0: Degrees of Separation: Find the shortest path between two actors via co-stars using a breadth-first search algorithm. AI Tic-Tac-Toe: An AI Tic-Tac-Toe game using the Minimax algorithm to ensure the AI never loses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages