From a6de8db74f9312b4fa3144daab063433e841efd9 Mon Sep 17 00:00:00 2001 From: William Moore Date: Fri, 22 Jul 2022 02:04:22 -0500 Subject: [PATCH] Initial commit --- .gitignore | 13 ++++++ Makefile | 25 +++++++++++ README.md | 4 +- RockPaperScissors.inform/Source/story.ni | 54 +++++++++++++++++++++++ RockPaperScissors.materials/Cover.jpg | Bin 0 -> 9642 bytes 5 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 RockPaperScissors.inform/Source/story.ni create mode 100644 RockPaperScissors.materials/Cover.jpg 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 0000000000000000000000000000000000000000..47ee20a9c225b4508df4ccaf1fbff69b8e89caef GIT binary patch literal 9642 zcmbVx2|QHa-~XMBG00%Zmd2W~Wf)81n|)u$F3O$}GL|S6vZM*w5|RdEPa6uABwLHJ zW#22(zDbfiXQW>}zh`;;z~afjykL5|Z3C+_X{WP7NKhy#t0*JVe|h~J7$Gwm)si|2QbeD z76BNR@v9#glWitu-ET=y56}GNk37JLjd~Km$PKIoFlxib0AQ94YymK9<{zKgHZT_W zf!VOJ2R7-M@OA&yRFt8Nzi{SX7@}`*Bq}Mv=zm57PX9FmJ?y}@4cx*7L7R*JTo+ct zy3S>NCNTbLyMci_5aKV4Wc=dm#^kk8FAQv0{<1;;h1veXn7=T`24-GYh4JhD`+z=4 z084EZH@V#nOH#nU0)6GOW=jaA9? zk>xMUw}F{>PqTyj-{~LR&?*2#JW`B^9^f#pNYLL}b(n@=8P!iL`aw4s8u(EkzZQGP4sH z8yg!3JBI)#r+~7Uh?w&KIjyxo+-PVT2FQv-aBdia8@AR4Z3TX!K(u29yp04FBof8K zie|&G1A}^SmthD59Em`okbpYuD09Igxlue~L|qnMTTfPTDo!~rqX;dbcl9nGx%Y#l zidX1yHVpq}0YM=t>1{FuS(2)ny2cJoeFH-yV-r&|J9`I5CubK|Zy#U3eg2eyu<(e3 zkx_>Z$0sBvok%`O%go9?lXEsVFTc2iQCe1BQCW4ZwyysAjfTdi)_ZO39i3hGAN2JP zJRKYw9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