PRESENTED BY:
RANA IKTIKHAR [225]
AHSAN SALEEMI [226]
ESSAR [498]
ABEEHA UMER [239]
AANIA NAVEED [204]
Objective:
1. Develop a two-player Rock-
Paper-Scissors game using x86
assembly language.
2. Validate player inputs
effectively.
3. Display results clearly for
players.
4. Handle errors gracefully to
ensure smooth gameplay.
5. Understand low-level
implementation of high-level
concepts.
PROGRAM WORKFLOW:
*Steps:*
1. Prompt Player 1 for input.
2. Validate Player 1’s input.
3. Repeat for Player 2.
4. Compare choices and determine the
winner.
5. Display results or errors.
Game In Assembly Code
[Link] Evaluation:
1. Check if both players made the same choice
(draw condition).
[Link] Player 1's Choice:
1. Check if Player 1 chose Rock, Paper, or Scissors.
2. Use conditional checks to direct the flow based on
Player 1's choice.
[Link] vs. Scissors:
1. If Player 1 chose Rock, check if Player 2 chose
Scissors.
2. Rock wins against Scissors.
[Link] vs. Rock:
1. If Player 1 chose Paper, check if Player 2 chose
Rock.
2. Paper wins against Rock.
[Link] vs. Paper:
1. If Player 1 chose Scissors, check if Player 2 chose
Paper.
2. Scissors win against Paper.
[Link] Messages:
1. Display a winning message for Player 1 if they
win.
2. Display a winning message for Player 2 if they
win.
GAME
LOGIC
Core Comparisons:
- Draw if choices
match.
- Rock beats Scissors.
- Paper beats Rock.
- Scissors beats
Paper.
Input Handling Player
Choices:
• 1 represents Rock.
• 2 represents Paper.
• 3 represents Scissors.
Input Validation:
• Ensures the input is within the valid range
(1 to 3).
• Displays an error message for invalid
entries.
• Prompts the player to re-enter until a
valid choice is made.
RESULT DISPLAY
*Outcome
Messages:*
"Player 1 wins."
"Player 2 wins."
"It’s a draw."
CONCLUSION
• 1. Rock-Paper-Scissors is a game of imperfect information.
• 2. Understanding probability and psychology improves chances.
• 3. Adaptability and strategic thinking are key to success
Final Thoughts:
• 1. Rock-Paper-Scissors combines luck, skill, and social interaction.
• 2. Understanding the game's math and psychology enhances enjoyment.
• 3. Apply strategic thinking to improve your gameplay.
Future Directions:
• 1. Explore AI-based opponents.
• 2. Develop new strategies and tactics.
• 3. Analyze player behavior and psychology.
ANY QUESTION??
THANKYOU
THANKYOU