Skip to content

kizo-88/Bowling-Scoring-System--

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Here’s an updated README.md that matches your provided code and details for your Bowling Center program.


Bowling Center Game System

Description

The Bowling Center Game System is a simple text-based C program designed to simulate a bowling game. The system allows users to input scores for a bowling game, manage player records, and display results. Players can be added, deleted, searched, and updated. The game includes a main menu that allows users to start a game or exit the system.

Features:

  • Start a Game: Players can input scores for each of the 10 sets (frames) in a bowling game.
  • Player Management: Players can be added, deleted, searched, and their scores can be updated.
  • Game Scoring: Scores are calculated and displayed after the game, with player rankings based on their performance.
  • Player Record Display: Players' scores and details are shown after the game to manage player information.

Table of Contents


Requirements

  • C Compiler: A C compiler like GCC to compile and run the program.
  • Operating System: The program works on Windows due to the use of conio.h for getch().

How to Run

  1. Download or Clone the repository.

  2. Open the command prompt (or terminal on your system).

  3. Navigate to the project directory using cd command.

  4. Compile the code:

    gcc -o bowling_center bowling_center.c
    
  5. Run the program:

    ./bowling_center
    

Game Instructions

  1. Welcome Screen: On launching, the program shows a welcome screen with a graphical bowling image.

  2. Main Menu:

    • Option 1: Start the Game
    • Option 2: Exit the System
  3. Game Setup:

    • Lane Number: Players will enter a lane number.
    • Game Number: Players will enter a game number.
    • Number of Players: Choose between 1-6 players.
    • Player Names: Enter player names for each participant.
  4. Game Scoring: Each player gets 10 sets to bowl, and scores are inputted for each set.

  5. Final Score Display: After completing the game, the system displays the total scores and player performance in a formatted table.


Player Menu

After the game, you can manage player details through the player menu:

  • Option 1: Add Player
  • Option 2: Delete Player
  • Option 3: Search Player
  • Option 4: Update Player
  • Option 5: View Game Scores

Functions

  • add_player(): Adds a new player to the list.
  • delete_player(): Deletes a player from the list by player number.
  • search_player(): Allows searching for a player by their player number.
  • update_player(): Updates the score of a player.
  • score_game(): Displays the player rankings based on scores.

Example of Final Output

When the game is completed, it will show the following output:

 ____________________________________________ 
| Lane: 1, Game: 1 |__1__|__2__|__3__|__4__|__5__|__6__|__7__|__8__|__9__|__10__|
| Player: John    |  5 |  3 |  7 |  9 |  8 | 10 |  5 |  3 |  7 |  9  |  85   |
| Player: Alice   |  8 |  7 |  9 |  8 |  6 |  5 |  7 |  8 | 10 |  6  |  75   |
`--------------------'-----'-----'-----'-----'-----'-----'-----'-----'-----'------'

 _________________________________________________________________________ 
|Note : Please remember final score of all player to manage player details|
`_________________________________________________________________________'

Exiting the Program

Once the game is finished, the program will display a thank you message and exit:

     THANK YOU, SEE YOU AGAIN!!!

Conclusion

The Bowling Center Game System is a fun and interactive way to simulate a real-life bowling game with score tracking and player management. It provides a great way to practice both C programming and game management systems.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors