๐๐ Welcome to LAB 1: Agent Adventure! ๐น๏ธ๐ค
๐งโ๐ Student Name: Donfack Tsopfack Yves Dylane
๐ฎโจ Step 1: Environment Creation ๐จ๐ฑ
Welcome to the world of EE! ๐ ๏ธ EE (Enviroment Editor) is the magical app that I built to create multi-layered grid environments ๐๏ธ.
It's where the agent does its thing! Think of it as a playground for the agentโeach layer in this world has a unique role.
๐ฏ Layer Breakdown:
Layer 2 (Roads) ๐ค๏ธ: Paths where the agent can freely roam.
Layer 3 (Target) ๐ฏ: The ultimate goal for our little agent.
Layer 5 (Agent) ๐ค: This is where the agent lives, moves, and grooves.
Layer 8 (Obstacles) โ: Challenges the agent must overcome.
Decorative Layers ๐ณ๐ก: Just some visuals to make the world look pretty!
To learn more about EE, check out the repo here! ๐
https://github.com/yvesdylane/EnviromentEditor
๐คโจ Step 2: Agent Design ๐ ๏ธ
Time to meet our Agent! ๐ฆพ Itโs got personality and a bunch of cool properties and methods to help it move, navigate, and explore its world. Here's what makes our agent tick:
Image ๐จ: A stylish sprite to represent the agent.
X, Y Coordinates ๐: Where in the grid world it shows up.
Scale ๐: Size it up, size it down, we got this!
Tile Size ๐ณ: This is the pixel magic that helps the agent find its perfect spot on the screen.
But wait, thereโs more! The agent's got some serious skills when it comes to moving, drawing itself, and checking for valid moves. ๐บ๐ฅ
๐โจ Step 3: Agent Simulation Loop ๐
This agent never sleeps! ๐๐ค Every 30 FPS, it updates itself, moving and grooving across the environment in real time! ๐ฐ๏ธโก
๐โจ Step 4: Pathfinding Enhancement ๐ค๏ธ๐
Hereโs where things get next-level! ๐ก Weโve taken pathfinding to new heights with BFS (Breadth-First Search)!
๐โจ It helps the agent navigate in the most efficient way possible, finding the shortest path with ease.
๐ Comparison of Pathfinding Methods:
Feature Original Code Enhanced Code (BFS)
Movement Random choices ๐ฒ Prioritizes shortest path ๐
Efficiency Some backtracking ๐ Less backtracking ๐ฅ
Best Use Case Small grids ๐๏ธ Complex grids with obstacles ๐๏ธ
The enhanced code reduces random movements, so the agent reaches its goal faster and with fewer detours! ๐ดโโ๏ธ๐จ