Sample Report - PPS - Project - STONE PAPPER SCISSOR GAME
Sample Report - PPS - Project - STONE PAPPER SCISSOR GAME
AFFLIATED
A PROJECT REPORT ON
SPS Game
UNDER THE SUBJECT OF
SUBMITTED BY :
GUIDED BY :
Birendrasinh zala
-Asst.professor
-Computer Engineering Department
INTRODUCTION
The Stone, Paper, Scissor game is a simple hand game usually played between two
people, where each player simultaneously forms one of three shapes with an
outstretched hand: stone (rock), paper, or scissors. In this C implementation, the
game is simulated between a user and the computer.
KEY FEATURES
User vs Computer Gameplay
The player competes against the computer, which selects its move randomly.
Input is taken from the user via the console using scanf(), and results are
displayed with printf().
Implements classic rules: Stone beats Scissor, Scissor beats Paper, Paper beats
Stone.
HOW IT WORKS
1. Set up & Initialization.
4. Comparing choices.
#include <stdlib.h>: Provides rand() and srand() functions for random number
generation.
#include <time.h>: Used to seed the random number generator with current time
using time(0).
3. User Input
4. Conditional Statements
if, else if, else: Used to determine the result of the game based on user and
computer choices.
System Requirements:
TEST CASES
Limitations
Limitations:
1. Poor input validation – The code may not check for invalid inputs (e.g., letters
or numbers outside the allowed range).
2. Loop feature – Many basic versions run only once and then exit.
3. No score tracking –It doesn't keep track of wins, losses, or draws over multiple
rounds.
6. Limited to Rock, Paper, Scissors - Doesn't support extensions like "Rock, Paper,
Scissors, Lizard, Spock.
Conclusion
This quiz program provides a simple game to fun with users. It ensures user interaction with random
computer choice and basic input validation.
References
The C Programming Language – Book