Skip to content

Yashraghuvans/My_Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Image Description

C++ Projects

This repository contains a collection of my C++ projects.

Project List

Project 1: Rock-Paper-Scissors Game

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:

  1. Compile the code using a C++ compiler.
  2. Run the generated executable.

Gameplay: Image Description

  1. The game will display a welcome message and a time limit.
  2. The player selects an option (rock, paper, or scissors).
  3. The computer generates a random choice.
  4. The winner is determined and displayed.
  5. 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.

Project 2: Tic-Tac-Toe Game

This C++ program creates a simple text-based Tic-Tac-Toe game where you play against the computer.

Features

  • Easy-to-understand game rules.
  • Basic computer opponent.
  • Displays win, loss, or tie results.
  • Uses the console for gameplay.

Coding

How to Play

  1. Run the compiled program.
  2. The game board will appear.
  3. Choose a spot (1-9) to place your 'X'.
  4. The computer will then make its move.
  5. The game continues until someone wins or it's a tie.

Known Issues

  • The computer isn't very smart.
  • Doesn't check for invalid moves.

Future Plans

  • Make the computer smarter.
  • Allow two players to compete.
  • Create different sized game boards.
  • Add graphics for a better look.

Author

Yash Raghuvanshi

Contributing

Feel free to fork the repository and contribute.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages