Here’s an updated README.md that matches your provided code and details for your Bowling Center program.
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.
- 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.
- 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.hforgetch().
-
Download or Clone the repository.
-
Open the command prompt (or terminal on your system).
-
Navigate to the project directory using
cdcommand. -
Compile the code:
gcc -o bowling_center bowling_center.c -
Run the program:
./bowling_center
-
Welcome Screen: On launching, the program shows a welcome screen with a graphical bowling image.
-
Main Menu:
- Option 1: Start the Game
- Option 2: Exit the System
-
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.
-
Game Scoring: Each player gets 10 sets to bowl, and scores are inputted for each set.
-
Final Score Display: After completing the game, the system displays the total scores and player performance in a formatted table.
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
- 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.
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|
`_________________________________________________________________________'
Once the game is finished, the program will display a thank you message and exit:
THANK YOU, SEE YOU AGAIN!!!
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.