GithubHelp home page GithubHelp logo

nbackhrpg's Introduction

nbackHRPG

A simple script to integrate Brain Workshop (a python dual n-back game) with HabitRPG.

Prerequisites

This script rewards your HabitRPG account for every 100 trials completed in Brain Workshop.

  1. HabitRPG.com
  2. http://brainworkshop.sourceforge.net/
  3. Python

Installation

Install nbackHRPG.py and nbackHRPG.conf to the brainworkshop directory; the same directory where you'll find brainworkshop.pyw

Next edit the nbackHRPG.conf file to update your HabitRPG user id and api token.

This next bit is the tricky part. You'll need to edit whatever script you use to launch Brain Workshop so that it runs 'python nbackHRPG.py' after running Brain Workshop.

In Linux, this can easily be done with the following bash launch file:

export DISPLAY=:0.0 cd $(dirname $0) python brainworkshop.pyw python nbackHRPG.py exit

For Windows, you'll have to install python and then install the win32 source installation of brainworkshop. Then you can create a batch file. The one below will probably work, but I haven't tested it.

start /wait cmd /C "c:\path\to\python.exe brainworkshop.pyw" c:\path\to\python.exe nbackHRPG.py

nbackhrpg's People

Contributors

eshapard 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.