Skip to content

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

Notifications You must be signed in to change notification settings

eshapard/nbackHRPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published