Skip to content

Find the shortest path between two football players using the breadth-first search algorithm.

License

Notifications You must be signed in to change notification settings

giovanni-cutri/footballers-connections

Repository files navigation

Footballers Connections

Find the shortest path between two football players based on the teams they have played for using the breadth-first search algorithm.

Inspired by this CS50 Project.

Data from worldfootball.net.

Usage

  • Clone this repository to your local machine.

  • Ensure that you have installed Python.

  • Install the dependencies listed in requirements.txt.

    pip install -r requirements.txt
    
  • Run footballers_connections.py.

You will be prompted to provide the Worldfootball URL of the initial player and the final player.

Alternatively, you can provide the aforementioned information as two command-line arguments, like this:

python footballers_connections.py [initial_player] [final_player]

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Find the shortest path between two football players using the breadth-first search algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages