Build a Rational AI Agent - Integrating Search, Logic, and Probability
All starter code, documentation, and resources are available on GitHub. Clone the repository to get started immediately!
git clone https://github.com/aniskoubaa/introduction_to_ai_course.git
⭐ Star the repo • 👁️ Watch for updates
You have ONLY 3 WEEKS to complete all 4 phases + report + video. This is an intensive timeline that requires immediate action.
Recommended Schedule:
📅 Week 1: Search Algorithms (Phase 1) - 25 points
📅 Week 2: Logic + Probability (Phases 2 & 3) - 40 points
📅 Week 3: Integration + Documentation (Phase 4 + Report + Video) - 35 points
⚠️ NO EXTENSIONS - START TODAY!
You will implement a rational AI agent that navigates a 2D grid world using Python and Pygame. Your agent will integrate three key AI reasoning techniques learned in this course:
Plans, reasons, and adapts
Pygame grid world
Compare algorithms
By completing this project, you will:
The project is divided into 4 phases to be completed in just 3 weeks. This is a tight deadline - START TODAY! Focus on getting core functionality working first, then refine.
Implement three search algorithms to find paths from start to goal.
ai_core/search_algorithms.pyagents/search_agent.pypython main.py --test-search
Implement a knowledge base with propositional logic and forward chaining inference.
ai_core/knowledge_base.pyagents/logic_agent.pypython main.py --test-logic
Implement Bayesian belief updates to handle sensor uncertainty and noisy readings.
ai_core/bayes_reasoning.pyagents/probabilistic_agent.pypython main.py --test-probability
Integrate all three reasoning techniques into a single rational agent.
agents/hybrid_agent.pypython main.py --test-hybrid
This project is designed to assess YOUR understanding of AI algorithms. While AI tools can be helpful, they MUST NOT write your code for you.
You may use IDE features like GitHub Copilot, TabNine, or similar tools for autocompletion and syntax suggestions. These should complete partial lines or suggest next steps.
You may ask ChatGPT, Claude, or similar LLMs to explain concepts, clarify algorithms, or help you understand errors. Example: "Explain how BFS works" or "Why am I getting this Python error?"
You may use AI to help debug specific errors or understand why your code doesn't work. Always understand the fix before applying it!
DO NOT ask AI to "write BFS algorithm" or "implement A* search" and copy the result. This defeats the learning purpose and will be detected.
DO NOT copy entire functions, classes, or algorithms from AI assistants, Stack Overflow, GitHub, or other sources without understanding and significantly modifying them.
Any substantial portions of code that are clearly AI-generated (detected by our analysis tools) will result in zero points for that phase and potential academic integrity violations.
We will use:
Penalties:
| Component | Points | Criteria |
|---|---|---|
| Phase 1: Search | 25 |
• BFS correctness & efficiency (8 pts) • UCS correctness & efficiency (8 pts) • A* correctness & optimality (9 pts) |
| Phase 2: Logic | 20 |
• Knowledge base implementation (10 pts) • Forward chaining inference (10 pts) |
| Phase 3: Probability | 20 |
• Bayes' rule implementation (10 pts) • Belief map updates (10 pts) |
| Phase 4: Integration | 20 |
• Hybrid agent integration (15 pts) • Rational behavior demonstration (5 pts) |
| Documentation & Presentation | 10 |
• 4-page IEEE report (5 pts) • 2-minute YouTube video demo (3 pts) • GitHub repository organization (2 pts) |
| Code Quality | 5 |
• Well-commented code (2 pts) • Proper structure & naming (2 pts) • Follows Python conventions (1 pt) |
| TOTAL | 100 |
You must submit ALL three components to receive credit for the project:
RoboMind/ project__pycache__)akoubaa@alfaisal.edu| Week 1 Target | Phase 1 (Search) - Get BFS, UCS, A* working |
| Week 2 Target | Phases 2 & 3 (Logic + Probability) - Complete KB and Bayes |
| Week 3 Target | Phase 4 (Integration) + Report + Video |
| ⚠️ FINAL DEADLINE | END OF WEEK 3 - Code + Report + Video (NO EXTENSIONS!) |
Late submissions will NOT be accepted. Plan accordingly and START IMMEDIATELY!
Part of your final exam will be directly related to this project.
Expect exam questions on:
Why this matters:
Pro Tip: Keep detailed notes about your implementation process, challenges, and decisions. This will help you both in writing your report and preparing for the final exam.
Clone the GitHub repository to get the complete starter code package with all documentation
$ git clone https://github.com/aniskoubaa/introduction_to_ai_course.git
Office Hours:
[Schedule TBD]
Discussion Forum:
[Link TBD]
Email:
[Instructor Email]
This project is an individual assignment. Academic dishonesty will not be tolerated.
✓ You MAY:
✗ You MAY NOT:
This project will challenge you, but it's designed to be achievable with consistent effort.
Start early, test often, and ask for help when needed!