Giter Site home page Giter Site logo

fossabot / redditor-or-robot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tsitu/redditor-or-robot

0.0 1.0 0.0 11.62 MB

A Reddit JSON API game

Home Page: https://tsitu.github.io/Redditor-or-Robot/

CSS 0.72% Shell 0.08% HTML 0.49% JavaScript 98.71%

redditor-or-robot's Introduction

Redditor or Robot? · Build Status

FOSSA Status

Introduction

'Redditor or Robot?' is a game in which players put their bot-sniffing skills to the test. A random subreddit and its corresponding /r/SubredditSimulator user are selected from this list and it's up to you to figure out whether the displayed comment was written by a human... or a bot!

Gameplay

The current subreddit is reloaded when you guess incorrectly or after you've successfully identified 10 consecutive users. 3 mistakes and it's game over!

For the purposes of consistency and simplicity, a bot is defined as one that comments solely on /r/SubredditSimulator. If you encounter a bot masquerading as a human, please submit an issue so it can be added to this list.

Running Locally

  1. git clone https://github.com/tsitu/Redditor-or-Robot.git
  2. npm install
  3. Change APP_HOST in webpack.config.js to your local IPv4 address or leave it as 'localhost'
  4. Change 'build/code.min.js' to 'build/code.js' in index.html
  5. npm start

Development Environment

To use ESLint with VSCode

  1. npm install -g eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react
  2. Open eslint-config-airbnb/rules/react.js and react-a11y.js in 'npm/node_modules' (via %appdata% on Windows) and make sure that 'ecmaFeatures' is wrapped in 'parserOptions' like so:
parserOptions: {
  ecmaFeatures: {
    jsx: true,
  },
},
  1. Install the ESLint extension and reload VSCode.
  2. Modify .eslintrc.json if necessary.
  3. Add the following to your local User\settings.json:
"eslint.validate": [
  "javascript",
  "javascriptreact",
  "html"
],

To use Flow with VSCode

  1. npm install -g flow-bin eslint-plugin-flowtype
  2. Install the Flow Language Support extension and reload VSCode.
  3. Modify src/.flowconfig if necessary and add /* @flow */ to the top of new files that require type checking.
  4. Add the following to your local User\settings.json:
"flow.pathToFlow": "{PATH_TO_FLOW_BIN}\\{FLOW_VERSION}\\flow.exe",
"javascript.validate.enable": false,

To build + minify

  1. npm install -g uglify-es uglify-js (if not already installed)
  2. npm run build

Technologies

License

FOSSA Status

redditor-or-robot's People

Contributors

fossabot avatar tsitu avatar

Watchers

 avatar

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.