Node JSON file parser and utilities to play The Game NerdQuest.
Quickstart - Strategy 1:
- open
src/bash/the_game.sh
- replace
YOUR KEY HERE
with your API key. - run
npm run start
- monitor the log file (by default
<root>/year2_day1.log
)
This is the main initial task of the game, run with npm run start
. It hits the endpoint every 1 second and collects the output in a log file. Later, we can go through this log file to find items and use them.
This is new in NerdQuest and I don't quite yet know what it does. But you can run npm run quest
to hit the quest endpoint one time and output is saved to <root>/quest.log
.
To be documented and updated soon how you can automate this, see below for some explanation of last year's functionality (which has not been updated yet). But for now, you have these instructions:
You can use items by POSTing them to
/items/use/{itemid}?target={target-userid}
.
Not all items accept targets. Some will only be used on yourself, and some auto-target.
Point gathering and items gathered into log files using bash script at src/bash/the_game.sh
. Manual use item script also located at src/bash/use_item.sh
.
Node app runs from src/index.js
- uses "good items" as defined in src/js/getGoodItems.js
at 15 sec interval, writes all item inventory to csv file at src/data/combinedItems.csv
src/index_stream.js
was in progress attempt to develop an app that used streaming input but was out of scope and abandoned.
Some rudimentary charts created in R using the csv output as an input: R script located at src/R/the_game.R
Initially comma separation was left out of bash so added manually using sed: sed 's/$/,/' day1.log > day1.array