This repository hosts a behavioral trust game experiment designed for the Center for Conflict and Cooperation. The experiment is implemented as a web-based application that can be accessed directly through GitHub Pages.
The Trust Game is a classic behavioral economics experiment that measures trust and reciprocity between participants. In this version:
- Participants start each round with $10
- They can choose to send $0, $5, or $10 to a simulated partner
- Any amount sent is tripled before the partner receives it
- The partner (simulated with different personalities) sends some amount back
- Participants play 5 rounds with different partners
- Web-based: Runs entirely in the browser, no installation required
- Data Collection: Automatically downloads participant data as JSON files
- Responsive Design: Works on desktop and mobile devices
- Progress Tracking: Shows progress through the 5 rounds
- Demographic Collection: Collects basic participant information
- Results Summary: Provides detailed feedback and analysis
The experiment is hosted at: https://rempsyc.github.io/lab_copilot_demo_testing/
- Each participant receives a unique ID
- Automatic Repository Submission: Data is automatically saved to the repository's
/datafolder - Fallback Options: Local download as JSON/CSV files if automatic submission fails
- Manual Submission: Clear instructions provided for manual data submission when needed
- Contains demographics, trial-by-trial decisions, and summary statistics
- No server required for basic functionality - all data processing happens client-side
For automatic data submission to work, repository maintainers need to configure a GitHub token. See DATA_SUBMISSION_SETUP.md for detailed setup instructions.
Quick Setup for Repository Owners:
- Create a GitHub Personal Access Token with
repoandworkflowpermissions - Add it as a repository secret named
GITHUB_TOKEN - Data will be automatically saved to the
/datafolder when participants complete the experiment
If automatic submission is not set up, participants will receive clear instructions for manual data submission.
- Built with vanilla JavaScript (no external dependencies)
- Responsive CSS design
- Compatible with modern web browsers
- GitHub Pages ready
This experiment is suitable for research on:
- Trust and cooperation
- Social decision making
- Behavioral economics
- Conflict resolution
- Game theory applications