/pathfinding-robots

Simple robot game demonstrating pathfinding

Primary LanguagePythonMIT LicenseMIT

pathfinding-robots

GitPack standard-readme compliant Hits

Simple terminal game with pathfinding

This project was created during the first semester of my bachelor's studies within a programming course. It uses a very simple pathfinding implementation and demonstrates it on a robot-chasing game with intuitive terminal controls. It is provided in its original form with some small modifications.

First, it generates a two dimensional world of free fields and barriers. Free fields always create a connected graph so that robots can move to any free field. When the world is generated, you can take a look at it. After, you can start the world simulation and robots will start to move. When the simulation ends, you can browse historical path of each robot.

Table of Contents

Install

This project supports GitPack. Local installation/update:

gitpack install github.com/dominiksalvet/pathfinding-robots

Dependencies

  • Python 3

Usage

To run the game, execute the pathfinding-robots.py command. Then type a number based on the current options and press the enter key. Feel free to take a look at the example below and get inspired.

Example

pathfinding-robots example

Contributing

Do you want to contribute? Do you have any questions? Then the CONTRIBUTING.md file is here for you.

License

This project is licensed under the MIT License.