Skip to content

alinen/peg-board-exp-platform

 
 

Repository files navigation

peg-board-exp-platform

Task and game for an experiment investigating task perseverance in children.

peg-experiment.mp4

How to build and run

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.

Tutorials

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

Working with logs

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

About

Experiment platform for studying attention

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 43.7%
  • JavaScript 36.5%
  • Python 19.6%
  • CSS 0.2%