Skip to content

intronep666/Artificial-Intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Artificial Intelligence โ€“ Practicals & Study Notes

CI Tests Made with Python AI Practicals License: MIT Contributions Welcome GitHub

A comprehensive collection of AI practical programs and detailed study notes
Perfect for students, self-learners, and interview preparation

๐Ÿ“– Explore Docs ยท ๐Ÿš€ Quick Start ยท ๐ŸŽฎ Play Tic-Tac-Toe ยท ๐Ÿค Contribute


๐Ÿ“– About This Repository

This repository contains well-structured Python implementations of classic AI algorithms alongside rich Markdown theory notes. Whether you're preparing for exams, learning AI fundamentals, or revising for interviews โ€” this repo has you covered.

โœจ Highlights

  • ๐Ÿ Clean Python Code โ€“ Readable, well-commented implementations
  • ๐Ÿ“š Detailed Theory โ€“ Markdown notes with pseudocode and explanations
  • ๐ŸŽฏ Exam-Ready โ€“ Summaries and key points for quick revision
  • ๐ŸŽฎ Interactive Demo โ€“ Play Tic-Tac-Toe against Minimax AI

๐Ÿ“‚ Repository Structure

Artificial-Intelligence/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ README.md                              # You are here
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                                # MIT License
โ”œโ”€โ”€ ๐Ÿ“„ CONTRIBUTING.md                        # Contribution guidelines
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt                       # Dependencies
โ”œโ”€โ”€ ๐Ÿ“„ .gitignore                             # Git ignore rules
โ”‚
โ”œโ”€โ”€ ๐Ÿ“˜ 01_AI_Introduction_Overview.md         # Theory: Foundations of AI
โ”œโ”€โ”€ ๐Ÿ“˜ 05_LISP_and_PROLOG_Summary.md          # Theory: LISP & PROLOG guide
โ”œโ”€โ”€ ๐Ÿ“˜ AI_Practicals_02_to_08_Summary.md      # Theory: All algorithms explained
โ”‚
โ”œโ”€โ”€ ๐Ÿ 02_Depth_First_Search.py               # DFS implementation
โ”œโ”€โ”€ ๐Ÿ 03_Breadth_First_Search.py             # BFS with goal & path finding
โ”œโ”€โ”€ ๐Ÿ 04_Greedy_Best_First_Search.py         # Heuristic-based search
โ”œโ”€โ”€ ๐Ÿ 06_Minimax_Algorithm.py                # Static tree Minimax
โ”œโ”€โ”€ ๐Ÿ 07_TicTacToe_with_Minimax.py           # Interactive Tic-Tac-Toe game
โ”œโ”€โ”€ ๐Ÿ 08_Minimax_with_AlphaBeta_Pruning.py   # Optimized Minimax
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ธ screenshots/                           # Sample output screenshots
โ”‚   โ”œโ”€โ”€ 02_dfs_output.txt
โ”‚   โ”œโ”€โ”€ 03_bfs_output.txt
โ”‚   โ”œโ”€โ”€ 04_best_first_output.txt
โ”‚   โ”œโ”€โ”€ 06_minimax_output.txt
โ”‚   โ””โ”€โ”€ 08_alphabeta_output.txt
โ”‚
โ””โ”€โ”€ ๐Ÿ”ง .github/workflows/                     # CI/CD automation
    โ””โ”€โ”€ python-tests.yml

๐Ÿง  Practicals Overview

# Practical Type Description
01 AI Introduction ๐Ÿ“˜ Theory Foundations of AI, ML, DL, Turing Test, Learning Types
02 Depth First Search ๐Ÿ Code Iterative DFS using stack on a graph
03 Breadth First Search ๐Ÿ Code BFS with goal detection and path reconstruction
04 Greedy Best-First Search ๐Ÿ Code Priority queue search using heuristics
05 LISP & PROLOG ๐Ÿ“˜ Theory Complete guide to AI programming languages
06 Minimax Algorithm ๐Ÿ Code Decision-making on static game trees
07 Tic-Tac-Toe with Minimax ๐Ÿ Code Play against an unbeatable AI!
08 Alpha-Beta Pruning ๐Ÿ Code Optimized Minimax with pruning

๐Ÿ“˜ Detailed theory, pseudocode, and explanations for Practicals 02โ€“08 are in
AI_Practicals_02_to_08_Summary.md


๐Ÿš€ Quick Start

Prerequisites

  • Python 3.x installed

Run any practical

# Clone the repository
git clone https://github.com/intronep666/Artificial-Intelligence.git
cd Artificial-Intelligence

# Run a practical (example: DFS)
python 02_Depth_First_Search.py

# Play Tic-Tac-Toe against AI
python 07_TicTacToe_with_Minimax.py

๐ŸŽฎ Try the Tic-Tac-Toe AI

   |   |   
-----------
   |   |   
-----------
   |   |   

You are X. Enter position (1-9): _

Challenge the Minimax-powered AI โ€” can you beat it? (Spoiler: You can't!) ๐Ÿ˜Ž


๐Ÿ“š What You'll Learn

Topic Concepts Covered
Graph Search DFS, BFS, Greedy Best-First, Heuristics
Game Theory Minimax, Alpha-Beta Pruning, Zero-sum games
AI Foundations Turing Test, AI vs ML vs DL, Learning paradigms
Data Structures Stacks, Queues, Priority Queues, Trees

๐Ÿ› ๏ธ Technologies Used

Python Markdown VS Code


๐Ÿ‘ค Author

Field Details
Name PREXIT JOSHI
Roll Number UE233118
Branch Computer Science and Engineering (CSE)
Institute University Institute of Engineering and Technology, Panjab University (UIET, PU)
Email ๐Ÿ“ง prexitjoshi@gmail.com
GitHub @intronep666

โญ Support

If you found this helpful, please consider giving a star โญ to the repository!


๐Ÿค Contributing

Contributions are welcome! Please read the Contributing Guidelines before submitting a PR.


๐Ÿ“œ License

This project is licensed under the MIT License โ€“ see the LICENSE file for details.


Made with โค๏ธ for AI enthusiasts

Star this repo

About

Built an open-source AI repo with Python implementations of DFS, BFS, Greedy Best-First, Minimax & Alpha-Beta Pruning. Includes interactive Tic-Tac-Toe with AI, detailed Markdown docs with theory, pseudocode & complexity analysis. Designed for students & developers as a complete learning resource.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages