timo-bmgd / spotibattle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpotiBattle ๐ŸŽต๐ŸŽค

SpotiBattle is a fun and engaging command-line game built in Python ๐Ÿ. It quizzes the player about the popularity and number of followers of different artists on Spotify ๐ŸŒŸ. The game fetches artist data using the Spotify API and updates the game data with the most recent information ๐Ÿ“ˆ.

SPOTIBATTLE

Getting Started ๐Ÿš€

  1. Clone this repository ๐Ÿ“‚
  2. Install the required Python packages using pip install python-dotenv ๐Ÿ“ฆ
  3. Run the game using python main.py game ๐ŸŽฎ
  4. To update the artist data, run python main.py update ๐Ÿ”„

How to Play ๐Ÿ•น๏ธ

The game presents two artists, and the player has to guess which artist has more followers on Spotify. If the player's guess is correct, their score increases, and a new round starts with different artists. The game continues until the player makes an incorrect guess.

Game Flow ๐ŸŒŠ

  1. The game fetches the top artists from Spotify using the get_api_data.py file.
  2. The artist data is cleaned and saved as a JSON file using the get_artist_data.py file.
  3. The game randomly selects two artists from the cleaned JSON file using the game.py file.
  4. The player is asked to guess which artist has more followers.
  5. If the player guesses correctly, their score increases, and the game continues with new artists. If they guess incorrectly, the game ends and shows their final score.

Future Improvements ๐Ÿ”ฎ

We are planning to add more features to SpotiBattle, such as playing with artists from a selected playlist and providing a graphical user interface (GUI) for a more immersive and enjoyable experience. Stay tuned for updates! ๐ŸŽ‰

About


Languages

Language:Python 100.0%