Initial commit

This commit is contained in:
William Moore 2022-07-22 02:04:22 -05:00
parent 22a66cfc2b
commit a6de8db74f
5 changed files with 94 additions and 2 deletions

13
.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
*.i6
*.*blorb
*.z8
*.ulx
.DS_Store
Build/
.vscode/
Release/
Index/
*.plist
*.blurb
*.iFiction
gametext.txt

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
INFORM := ~/if/inform7/inform
INFORM7 := $(INFORM)/inform7/Tangled/inform7
INFORM6 := $(INFORM)/inform6/Tangled/inform6
INBLORB := $(INFORM)/inblorb/Tangled/inblorb
BUILDDIR := build
DISTDIR := dist
SRCDIR := .
TARGET := RockPaperScissors
PROJDIR := $(SRCDIR)/$(TARGET).inform
SRCS := $(wildcard $(PROJDIR)/Source/*.ni)
I6S := $(patsubst %.ni,%.i6,$(SRCS))
all: $(TARGET)
$(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$(TARGET).gblorb
$(TARGET): $(I6S)
$(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx
%.i6: %.ni
$(INFORM7) -project "$(PROJDIR)" $(ARGS)
clean:
- rm -rf $(PROJDIR)/Build
- rm *.gblorb

View File

@ -1,2 +1,2 @@
# butteredtoast2 # Rock, Paper, Scissors!
This is the Inform 7 source for the interactive fiction for the Rock, Paper, Scissors! tournament.

View File

@ -0,0 +1,54 @@
[ 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.
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 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]".

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB