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.
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:
- Task 1: ๐ฏ Number Guessing Game
- Task 2: โ Simple Calculator
- Task 3: โโญ Tic-Tac-Toe 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.
- ๐ฒ 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.
Objective: Develop a calculator program that performs basic arithmetic operations such as addition, subtraction, multiplication, and division.
- ๐ข 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.
Objective: Implement a Tic-Tac-Toe game where two players can play against each other on the console.
- ๐๏ธ 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.
To run these projects locally, follow the steps below:
- Clone the Repository:
git clone https://github.com/your-username/codsoft.git cd codsoft