Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍌 Monkey-Banana Problem - AI Search Solution 🐒

This repository contains an AI-based search algorithm to solve the Monkey-Banana Problem using state-space search techniques like DFS, BFS, and A algorithms*.

📖 Problem Statement

A monkey in a room wants to grab a banana hanging from the ceiling. The monkey can:
Move left or right 🏃
Climb onto a box 📦
Grab the banana when on the box 🍌

The goal is to determine the sequence of actions for the monkey to get the banana.


⚙️ Implementation Details

🧠 AI Techniques Used

  • Depth-First Search (DFS)
  • Breadth-First Search (BFS)
  • A Search Algorithm* (with heuristic optimization)

🔥 Features

State representation (Monkey’s position, box position, banana position)
Graph search algorithms to find the optimal solution
Animated visualization using Pygame 🎮


🚀 Installation & Usage

🔧 Requirements and Running

Make sure you have Python installed. Then, install dependencies:

pip install pygame
python monkey_banana.py

About

A simple program using python to solve the monkey-banana problem

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages