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 ๐.
- Clone this repository ๐
- Install the required Python packages using
pip install python-dotenv
๐ฆ - Run the game using
python main.py game
๐ฎ - To update the artist data, run
python main.py update
๐
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.
- The game fetches the top artists from Spotify using the
get_api_data.py
file. - The artist data is cleaned and saved as a JSON file using the
get_artist_data.py
file. - The game randomly selects two artists from the cleaned JSON file using the
game.py
file. - The player is asked to guess which artist has more followers.
- 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.
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! ๐