diff --git a/.checkitems b/.checkitems new file mode 100644 index 0000000..b0943de --- /dev/null +++ b/.checkitems @@ -0,0 +1,18 @@ +import os +import requests + +def search_for_item(self, item_name: str = "Automaton") -> bool: + response = requests.post( + f"{os.getenv('API_URL')}:{os.getenv('API_PORT')}/v1/inventory/search/", + data={ + "charname": os.getenv('GITHUB_USER'), + "item_name": item_name + } + ) + return response.status_code + +items = ["Shovel", "Mechanism", "GlowingOrb"] + +for item in items: + response = search_for_item(item) + print(f"{item}: {response}") \ No newline at end of file diff --git a/.gatorgrade.yml b/.gatorgrade.yml new file mode 100644 index 0000000..0767a52 --- /dev/null +++ b/.gatorgrade.yml @@ -0,0 +1,38 @@ +- entrance/mists/GlowingOrb.py: + - description: "You unearthed the GlowingOrb" + check: ConfirmFileExists +- entrance/mists/Mechanism.py: + - description: "You unearthed the Mechanism" + check: ConfirmFileExists +- entrance/mists/.cache/.flavor: + - description: "You dug the cache to store extra items" + check: ConfirmFileExists +- description: You overcame the Termites with the automaton + check: MatchCommandFragment + options: + fragment: "null" + count: 0 + exact: true + command: jq .asked .flags +- description: You picked up the Shovel + check: MatchCommandFragment + options: + fragment: "Shovel: 200" + count: 1 + exact: true + command: python .checkitems +- description: You picked up the GlowingOrb + check: MatchCommandFragment + options: + fragment: "GlowingOrb: 200" + count: 1 + exact: true + command: python .checkitems +- description: You picked up the Mechanism + check: MatchCommandFragment + options: + fragment: "Mechanism: 200" + count: 1 + exact: true + command: python .checkitems + \ No newline at end of file diff --git a/.media/image.png b/.media/image.png new file mode 100644 index 0000000..1468ec5 Binary files /dev/null and b/.media/image.png differ diff --git a/README.md b/README.md index 2034980..b4d194f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,40 @@ -# venture-narrascope-demo -Demo repository for Narrascope 2024 presentation. +# Your first journey + +> Welcome to the dungeon, we've got toys and games. +> - Somebody Loud + +![Map graphic detailing the path to an unknown X](.media/image.png) + +## Summary + +You're about to begin the adventure of a thousand steps with just one...`cd`? In our journey, +we use different commands to walk around the world presented to us. In this short excursion, +we'll learn a few of these including: + +### For movement + +> - `cd` + +### To interact +> - `look` +> - `talk` + +### To get and receive _things_ +> - `inventory` +> - `get` +> - `use` +> - `info` +> - `give` + +Each of these will give us abilities that help us negotiate the terrain around us +or...just do _stuff_? Whether that stuff is important to you or not is something +you'll have to figure out. There's a surprising lot to do with the list of commands +above. + +### About this adventure + +This particular adventure starts and ends in a dungeon that wasn't there yesterday. Surprising +to be sure, but also _exciting_! What wonders lurk there? What challenges do you have to solve? +What friends and allies will you meet? + +This is the start of your time in `_Venture_`; go forth traveler, and explore! \ No newline at end of file