Skip to content

A Bash-based interactive True or False game that fetches questions from an API, tracks player scores, and provides a fun gaming experience with score management.

License

Notifications You must be signed in to change notification settings

RafaelKarcz/True-or-False-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

True or False Game Bash Script

Overview

The True or False Game is a Bash script-based interactive game that presents the player with a series of true or false questions. The game dynamically fetches questions from a local API, tracks player scores, and stores them in a file for later viewing. With the help of a straightforward interface, it's a good way to test your bash knowledge in a fun and interactive way.

Features

  • Dynamic Question Fetching: Questions are fetched in real-time from a local API, ensuring a diverse and unpredictable gaming experience.
  • Score Tracking: Each player's score is tracked throughout the game and saved for future reference.
  • User Authentication: Secure user authentication to access the game, ensuring a personalized experience.
  • Simple User Interface: Easy-to-navigate menus and clear prompts make the game accessible for everyone.
  • Random Encouragement Messages: Players receive random positive feedback upon correct answers.

Installation

To install the True or False Game, follow these steps:

  1. Clone the repository:

    git clone https://github.com/YourUsername/true_or_false.git
    
  2. Navigate to the project directory:

    cd true_or_false
    
  3. Ensure you have Bash installed and that the script is executable:

    chmod +x true_or_false.sh
    

Usage

To play the game, run the script from your terminal:

./true_or_false.sh

You will be presented with a menu where you can choose to play the game, view scores, or reset scores.

How to Play

  1. Select 'Play a game' from the main menu.
  2. Enter your name when prompted.
  3. Answer the true/false questions as they appear.
  4. Your final score will be displayed at the end of the game.

Contributing

I'm happy about any contributions to the True or False Game! If you have suggestions or improvements, feel free to fork the repository and submit a pull request with your changes. Your contributions could include bug fixes, new features, or improvements to the existing code.

Also, before making significant changes, it's always a good idea to open an issue in the GitHub repository to discuss your ideas with the community.

Please note that all contributions to this project should comply with the principles of the MIT license, under which this game is released.

License

The True or False Game is MIT licensed. This means it is free software and comes with no warranty. You can use, modify, and distribute it under the terms of the MIT license. For more details, see the LICENSE file.

Support

For support, please open an issue in the GitHub repository, and I will try to address it as soon as possible.

Conclusion

The True or False Game is a simple yet entertaining way to test your knowledge and have fun. I hope you enjoy playing, recreating, or even further developing it. Cheers!

About

A Bash-based interactive True or False game that fetches questions from an API, tracks player scores, and provides a fun gaming experience with score management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages