diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e059482 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*.i6 +*.*blorb +*.z8 +*.ulx +.DS_Store +Build/ +.vscode/ +Release/ +Index/ +*.plist +*.blurb +*.iFiction +gametext.txt \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..862a1c8 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 5ea04f8..d57aff6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# butteredtoast2 - +# Rock, Paper, Scissors! +This is the Inform 7 source for the interactive fiction for the Rock, Paper, Scissors! tournament. \ No newline at end of file diff --git a/RockPaperScissors.inform/Source/story.ni b/RockPaperScissors.inform/Source/story.ni new file mode 100644 index 0000000..603d011 --- /dev/null +++ b/RockPaperScissors.inform/Source/story.ni @@ -0,0 +1,54 @@ +[ Copyright (C) 2022 William R. Moore + + 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 . ] + +"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]". diff --git a/RockPaperScissors.materials/Cover.jpg b/RockPaperScissors.materials/Cover.jpg new file mode 100644 index 0000000..47ee20a Binary files /dev/null and b/RockPaperScissors.materials/Cover.jpg differ