60 lines
3.3 KiB
Plaintext
60 lines
3.3 KiB
Plaintext
[ Copyright (C) 2022 William R. Moore <william@nerderium.com>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, version 3 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. ]
|
|
|
|
"Rock, Paper, Scissors" by "Masterful Interactions".
|
|
The story description is "You are a player in the biggest Rock, Paper, Scissors tournament in history!".
|
|
Release along with cover art.
|
|
The release number is 1.
|
|
|
|
Asking someone about something is speech. Telling someone about something is speech. Answering someone that something is speech. Asking someone for something is speech.
|
|
|
|
The arena is a room. The description of the arena is "It's a large room where there are hundreds of people cheering and jeering on players in what has to be all-time silliest tournaments."
|
|
|
|
Opponent is a person. Opponent is in arena. The description of opponent is "They're a grody looking sort of person. They're standing there with the hands in the traditional 'rock, paper, scissors' posture of one hand out, palm up, the other hand in a fist with the bottom of on top of the open palm."
|
|
|
|
A person has a number called current score.
|
|
|
|
The current score of the player is 0. The current score of opponent is 0.
|
|
|
|
Instead of speech when the noun is Opponent:
|
|
say "Opponent frowns and says 'Shaddup!'"
|
|
|
|
Instead of attacking Opponent:
|
|
let player result be a random number between 1 and 3;
|
|
let opponent result be a random number between 1 and 3;
|
|
if player result is 1, say "You chose 'rock'.";
|
|
if opponent result is 1, say "Opponent chose 'rock'.";
|
|
if player result is 2, say "You chose 'paper'.";
|
|
if opponent result is 2, say "Opponent chose 'paper'.";
|
|
if player result is 3, say "You chose 'scissors'.";
|
|
if opponent result is 3, say "Opponent chose 'scissors'.";
|
|
if player result is 1 and opponent result is 3, say "Player wins!";
|
|
if player result is 1 and opponent result is 3, increase current score of player by 1;
|
|
if player result is 2 and opponent result is 1, say "Player wins!";
|
|
if player result is 2 and opponent result is 1, increase current score of player by 1;
|
|
if player result is 3 and opponent result is 2, say "Player wins!";
|
|
if player result is 3 and opponent result is 2, increase current score of player by 1;
|
|
if player result is 1 and opponent result is 2, say "Opponent wins!";
|
|
if player result is 1 and opponent result is 2, increase current score of Opponent by 1;
|
|
if player result is 2 and opponent result is 3, say "Opponent wins!";
|
|
if player result is 2 and opponent result is 3, increase current score of Opponent by 1;
|
|
if player result is 3 and opponent result is 1, say "Opponent wins!";
|
|
if player result is 3 and opponent result is 1, increase current score of Opponent by 1;
|
|
if player result is opponent result, say "Folks! We have a tie!".
|
|
|
|
|
|
When play begins:
|
|
now the left hand status line is "You: [current score of the player]";
|
|
now the right hand status line is "Opponent: [current score of Opponent]".
|