Giter Site home page Giter Site logo

jsonfileparser's Introduction

JSONFileParser

Node JSON file parser and utilities to play The Game NerdQuest.

Quickstart - Strategy 1:

  1. open src/bash/the_game.sh
  2. replace YOUR KEY HERE with your API key.
  3. run npm run start
  4. monitor the log file (by default <root>/year2_day1.log)

Game Strategies

Strategy 1 - Harvest points and items

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.

Strategy 2 - Quest

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.

Strategy 3 - Use Items

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.


1.0 (The Game) release notes

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

jsonfileparser's People

Contributors

mliq avatar twistermc avatar

Watchers

 avatar  avatar

Forkers

twistermc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.