![]() ![]() In order to avoid these issues, I added those statements to make the program feel more interactive and to give the computer more personality. In addition, the only user interaction required is simply choosing rock, paper, or scissors no other thinking is really required, which can make the program feel dull. Since the game can be rather short depending on how many matches the player wants to play, I didn’t want the game to feel rushed or impersonal. These include the welcome statement in the beginning of the program and the closing statements at the end of the program. To keep the logic correct, I wrote down the possible combinations of plays and related the moves to their index numbers in order to remind myself who should win each match in the different scenarios.Īfter testing the program and working out any logical errors, I added some features to the game. The hardest part of creating the game was keeping the logic organized, since the winner of each match depends on the rules of rock, paper, scissors and not which index number is larger. Overall, a good portion of the coding process was spent planning how to make the main script as concise as possible and how to make efficient functions that would support the main code. Whenever I saw fit, I decided to split up certain parts of the algorithm into functions. Before coding the game, I created an algorithm for what the program should do. The process of creating the game was not too difficult since implementing functions made the coding process more organized and less confusing. Program Description: Program Description and Variable List for Rock, Paper, Scissorsįinal Algorithm: Rock, Paper, Scissors Pseudocodeįinal Program: Rock, Paper, Scissors Scriptĭemonstration of the Game: Rock, Paper, Scissors Demo User Manual: Rock, Paper, Scissors User Manual At the end of the game, the stats are tallied up, and the ultimate winner is revealed. After each match, a match winner is determined. In this version, the player duels the computer in a various number of matches, which is decided by the player. ![]() This game is an online version of the classic “Rock, Paper, Scissors”.
0 Comments
Leave a Reply. |