This repository contains a collection of my C++ projects.
This C++ project implements a simple Rock-Paper-Scissors game with a time limit.
Features:
- Generates random computer choices.
- Implements basic game logic with win/loss/tie conditions.
- Includes a time limit for player input.
- Tracks player and computer scores.
How to Run:
- Compile the code using a C++ compiler.
- Run the generated executable.
- The game will display a welcome message and a time limit.
- The player selects an option (rock, paper, or scissors).
- The computer generates a random choice.
- The winner is determined and displayed.
- The game continues until the player chooses to stop.
Known Issues:
- The time limit might not be perfectly accurate due to system performance.
- Error handling for invalid user input is not implemented.
Future Improvements:
- Implement more accurate time measurement.
- Add error handling for invalid input.
- Introduce different game modes or difficulty levels.
This C++ program creates a simple text-based Tic-Tac-Toe game where you play against the computer.
- Easy-to-understand game rules.
- Basic computer opponent.
- Displays win, loss, or tie results.
- Uses the console for gameplay.
- Run the compiled program.
- The game board will appear.
- Choose a spot (1-9) to place your 'X'.
- The computer will then make its move.
- The game continues until someone wins or it's a tie.
- The computer isn't very smart.
- Doesn't check for invalid moves.
- Make the computer smarter.
- Allow two players to compete.
- Create different sized game boards.
- Add graphics for a better look.
Yash Raghuvanshi
Feel free to fork the repository and contribute.