- For python codes use Processing with python module.
- For p5.js use web server, a development option is Live Server.
- Code for Seek Food.
- Browser Demo in p5.js
- Objectives:
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.
- Code for Seek Food - BFS.
- Browser Demo in p5.js.
- Objectives:
- When the environment is created some cells are defined as walls.
- A BFS is used to plan the path to the food.
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.
- Code for Seek Food - DFS.
- Browser Demo in p5.js.
- Objectives:
- When the environment is created some cells are defined as walls.
- A DFS is used to plan the path to the food.
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.
- Code for Seek Food - Uniform Cost.
- Browser Demo in p5.js.
- Objectives:
- When the environment is created some cells are defined as walls.
- A Uniform Cost is used to plan the path to the food.
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.
- Code for Seek Food - Greedy.
- Browser Demo in p5.js.
- Objectives:
- When the environment is created some cells are defined as walls.
- A Greedy is used to plan the path to the food.
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.
- Code for Seek Food - A star.
- Browser Demo in p5.js.
- Objectives:
- When the environment is created some cells are defined as walls.
- A A star is used to plan the path to the food.
- A food appear and the vehicle needs to "eat" it.
- When food is aten, the environment creates a new food in a random position.