An online experiment for a friend.
rails generate scaffold IterativeChain chain:text num_users:integer rails generate scaffold UserEntry pairs:text chain_id:integer
MVC: Models: iterative_chains, user_entries Views: experiment_intro, training, testing Controllers: manage iterative chains, manage user entry
Table of Iterative Chains
Each chain:
- contains a chain
- contains a Boolean checking whether it's locked or not
- contains a time stamp of when it was locked if locked
- length of chain
UX
- User clicks yes on taking experiment
- Check each chain for whether any should be unlocked
- check again what's unlocked
- check lengths of free chain, choose shortest
- lock chain
- assign user a cookie
- record time stamp
- User gets directed to training page
- User gets directed to testing