tangorishi / learnJava

LearnJava - Hacktoberfest 2023 πŸš€ Join us in celebrating Hacktoberfest 2023 by contributing to this Java programming repository! Whether you're a beginner or an expert, dive into Java, share your knowledge, and make Hacktoberfest unforgettable. πŸ“šπŸ’» Happy coding and contributing! πŸš€πŸŒŸ
MIT License
26 stars 45 forks source link

Create StonePaperScissors #115

Closed DevanshPaliwal closed 10 months ago

DevanshPaliwal commented 10 months ago

Description:

The Stone-Paper-Scissors game is a classic hand game where two players simultaneously choose one of three options: Stone, Paper, or Scissors. The outcome of the game is determined by the rules: Stone beats Scissors, Scissors beats Paper, and Paper beats Stone. This project involves creating a simple console-based Stone-Paper-Scissors game in Java.

Changes Made:

User Interface Enhancement:

Improved the user interface by adding clear instructions and a user-friendly menu for player selection. Enhanced the readability and clarity of the text-based interface.

Input Validation:

Added input validation to ensure that the player's choice is valid (either Stone, Paper, or Scissors).

Randomized Opponent:

Implemented an opponent that randomly selects its move (Stone, Paper, or Scissors) for a more engaging and challenging gaming experience.

Testing Done:

Unit Testing:

Performed extensive unit testing on individual functions to verify their correctness.

Integration Testing:

Tested the integration of various components of the game to ensure they work together seamlessly. Simulated multiple game sessions to validate the game logic.

UI Testing:

Conducted user interface testing to ensure that the user instructions and menus are clear and user-friendly.

Additional Notes:

The game can be easily extended to include more complex game variants or additional features, such as keeping track of the player's score or implementing multiplayer modes. Future improvements can involve creating a graphical user interface (GUI) for a more visually appealing gaming experience. Care was taken to make the code readable and maintainable to facilitate potential updates and enhancements. Proper documentation was provided to make the code accessible to other developers or contributors. The Stone-Paper-Scissors game in Java offers a fun and educational project for those looking to practice Java programming.