Task and game for an experiment investigating task perseverance in children.
- Click here to demo the experiment.
- Click here to demo the swimmer game.
- Click here to demo the peg task.
- Click here to demo the runner game.
peg-experiment.mp4
This application is implemented using Python3 and Flask.
$ python3 --version
Python 3.7.2
$ python3 -m pip install --upgrade pip
$ pip3 install Flask
$ pip3 install flask_sqlalchemy
To run on windows, double-click on backend.py in the /public directory. To run from the command line,
$ cd public
$ python3 backend.py
Using your browser, navigate to 127.0.0.1:5000.
The task and game modes can be played independently as part of an introductory tutorial.
- Peg board tutorial: In your browser, navigate to
http://127.0.0.1:5000/tutorialpeg - Swimmer game tutorial: In your browser, navigate to
http://127.0.0.1:5000/tutorialgame
To preview and download the logs for the experiment using your browser, navigate to http://127.0.0.1:5000/results.
More functionality is available using the script database.py in /public.
$ python3 database.py
Enter commands: logs, ids, clear, <pid>, export, help, quit
Enter a command:
- logs: lists all log messages
- ids: lists all participants
- clear: deletes all participants and logs
- pid: lists all log messages corresponding the given participant id
- export: save the database to a .csv file
- help: list commands
- quit: quits the application