Skip to content

Mayank-01x/CodSoft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ CodSoft C++ Programming Internship Repository

Welcome to the CodSoft C++ Programming Internship Repository! This repository contains the projects I developed during my internship, focusing on practical programming tasks aimed at strengthening core C++ skills.


๐Ÿ“œ Overview

As part of the internship, I am required to complete a minimum of three tasks. These tasks are designed to cover various aspects of C++ programming, including:

  • ๐Ÿง  Logic Building
  • โž• Basic Arithmetic Operations
  • ๐ŸŽฎ Game Development

The projects included in this repository are:

  1. Task 1: ๐ŸŽฏ Number Guessing Game
  2. Task 2: โž— Simple Calculator
  3. Task 3: โŒโญ• Tic-Tac-Toe Game

๐ŸŽฏ Task 1: Number Guessing Game

Objective: Create a program that generates a random number and asks the user to guess it. Provide feedback on whether the guess is too high or too low until the user guesses the correct number.

๐Ÿ”‘ Key Features:

  • ๐ŸŽฒ Generate a random number between a specified range (e.g., 1 to 100).
  • ๐Ÿ“ Prompt the user to guess the number.
  • ๐Ÿ“ˆ Provide feedback: "Too high" or "Too low".
  • ๐Ÿ”„ Continue until the user guesses the correct number.

โž— Task 2: Simple Calculator

Objective: Develop a calculator program that performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

๐Ÿ”‘ Key Features:

  • ๐Ÿ”ข Allow the user to input two numbers.
  • โž•โž–โœ–๏ธโž— Provide options for the user to choose an arithmetic operation.
  • ๐Ÿงฎ Perform the selected operation and display the result.
  • ๐Ÿšซ Handle edge cases, such as division by zero.

โŒโญ• Task 3: Tic-Tac-Toe Game

Objective: Implement a Tic-Tac-Toe game where two players can play against each other on the console.

๐Ÿ”‘ Key Features:

  • ๐Ÿ—‚๏ธ Game Board: Create a 3x3 grid as the game board.
  • ๐Ÿ‘ฅ Players: Assign "X" and "O" to two players.
  • ๐Ÿ“Š Display Board: Show the current state of the board after each move.
  • ๐ŸŽฎ Player Input: Prompt the current player to enter their move (choose a cell on the grid).
  • โœ๏ธ Update Board: Update the game board with the player's move.
  • ๐Ÿ† Check for Win: Check if the current player has won the game.
  • ๐Ÿค Check for Draw: Determine if the game ends in a draw (no more valid moves).
  • ๐Ÿ”„ Switch Players: Alternate turns between "X" and "O" players.
  • ๐Ÿ Display Result: Show the result of the game (win, draw, or ongoing).
  • ๐Ÿ” Play Again: Ask if the players want to play another game.

๐Ÿ› ๏ธ How to Run the Projects

To run these projects locally, follow the steps below:

  1. Clone the Repository:
    git clone https://github.com/your-username/codsoft.git
    cd codsoft

About

Virtual Internship Projects in C++ Programming at CodSoft

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages