Oop Micro FINAL
Oop Micro FINAL
PROJECT REPORT ON
“ Rock-Paper-Scissor ”
SUBMITTED BY
Mr. KALE BHUSHAN ULHAS [125]
Mr. KOTHULE GANESH SHARAD [136]
Mr. KUKADE ADITYA BHUPENDRA [138]
Mr. KOKANE ROHIT RAMDAS [133]
423603,DIST: AHMEDNAGAR
CERTIFICATE
This is certify that the project report entitled
“ Rock-Paper-Scissor ”
SUBMITTED BY
Mr. KALE BHUSHAN ULHAS [125]
Mr. KOTHULE GANESH SHARAD [136]
Mr. KUKADE ADITYA BHUPENDRA [138]
Mr. KOKANE ROHIT RAMDAS [133]
Place:Kopargaon
Date:
We would take this opportunity to express our sincere thanks and gratitude to Our
Project Guide Prof.Mr.Y.K.DHOTRE, Department of Computer Technology, Sanjivani
K.B.P. Polytechnic, Kopargaon. For her guidance and support in completing this
project. Lots of thanks to Head of Computer technology Department Prof. G.N.
Jorvekar for providing us the best support we ever had. We like to express our sincere
gratitude to Mr. A. R. Mirikar, Principal, of Sanjivani K.B.P. Polytechnic, Kopargaon for
providing a great platform to complete the project within the scheduled time. Last
but not the least; we would like to say thanks to our family and friends for their never
ending love, help, and support in so many ways through all this time.A big thanks to
all who have willingly helped us out wIth their ability.
1. KALE BHUSHAN
2. KOTHULE GANESH
3. KUKADE ADITYA
4. KOKANE ROHIT
SR.NO INDEX
1 PROGRAM CODE
2 OUTPUT
3 CONCLUSION
• PROGRAM CODE
#include <iostream>
#include <cstdlib>
#include <ctime>
#define ROCK 1
#define PAPER 2
#define SCISSORS 3
int main()
{
int player_throw = 0;
int ai_throw = 0;
bool draw = false;
do
{
ai_throw = (rand() % 3) + 1;
if (ai_throw == ROCK)
{
cout << "AI throws ROCK." << endl;
}
else if (ai_throw == PAPER)
{
cout << "AI throws PAPER." << endl;
}
else if (ai_throw == SCISSORS)
{
cout << "AI throws SCISSORS." << endl;
}
if (player_throw == ai_throw)
{
draw = true;
cout << "Draw! Play again!" << endl;
}
else if (player_throw == ROCK && ai_throw == SCISSORS)
{
cout << "ROCK beats SCISSORS! YOU WIN." << endl;
}
else if (player_throw == ROCK && ai_throw == PAPER)
{
cout << "PAPER beats ROCK! YOU LOSE." << endl;
}
else if (player_throw == PAPER && ai_throw == ROCK)
{
cout << "PAPER beats ROCK! YOU WIN." << endl;
}
else if (player_throw == PAPER && ai_throw == SCISSORS)
{
cout << "SCISSORS beats PAPER! YOU LOSE." << endl;
}
else if (player_throw == SCISSORS && ai_throw == PAPER)
{
cout << "SCISSORS beats PAPER! YOU WIN." << endl;
}
else if (player_throw == SCISSORS && ai_throw == ROCK)
{
cout << "ROCK beats SCISSORS! YOU LOSE." << endl;
}
} while (draw);
return 0;
}
• OUTPUT
• CONCLUSION
Object-Oriented Programming (OOP) is of paramount importance in C++ and software development as a whole. By
embracing OOP principles such as modularity, encapsulation, inheritance, polymorphism, and abstraction, developers
can create modular, maintainable, and scalable C++ applications.