prijatelilab / PrijateliTree

A FastAPI application used to play lab games and collect survey data.
MIT License
1 stars 0 forks source link

Add pause #160

Closed anisfeld closed 8 months ago

anisfeld commented 8 months ago

Describe Your Changes

We add some pauses to hopefully improve the decision making of students.

We also remove immediate check_all_set() call from waiting.html. All calls occur after 2.5 seconds.

Non-Obvious Technical Information

Checklist Before Requesting a Review

Initially they see:

Screenshot 2024-03-10 at 9 22 57 PM

After 3 seconds:

Screenshot 2024-03-10 at 9 23 04 PM
2024-03-10 21:27:37 INFO:     172.21.0.1:50984 - "POST /games/16/player/91/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:37 INFO:     172.21.0.1:50984 - "GET /games/16/player/91/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:39 INFO:     172.21.0.1:50984 - "POST /games/16/player/92/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:39 INFO:     172.21.0.1:50984 - "GET /games/16/player/92/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:41 INFO:     172.21.0.1:50984 - "GET /games/16/player/91/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:41 INFO:     172.21.0.1:50984 - "POST /games/16/player/94/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:41 INFO:     172.21.0.1:50984 - "GET /games/16/player/94/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:42 INFO:     172.21.0.1:50984 - "GET /games/16/player/92/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:43 INFO:     172.21.0.1:50984 - "POST /games/16/player/93/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:43 INFO:     172.21.0.1:50984 - "GET /games/16/player/93/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:44 INFO:     172.21.0.1:50984 - "GET /games/16/player/91/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:44 INFO:     172.21.0.1:50984 - "GET /games/16/player/94/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:45 INFO:     172.21.0.1:50984 - "POST /games/16/player/95/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:45 INFO:     172.21.0.1:50984 - "GET /games/16/player/95/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:45 INFO:     172.21.0.1:50984 - "GET /games/16/player/92/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:46 INFO:     172.21.0.1:50984 - "GET /games/16/player/93/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:46 INFO:     172.21.0.1:50984 - "POST /games/16/player/96/answer HTTP/1.1" 303 See Other
2024-03-10 21:27:46 INFO:     172.21.0.1:50984 - "GET /games/16/player/96/waiting HTTP/1.1" 200 OK
2024-03-10 21:27:47 INFO:     172.21.0.1:50984 - "GET /games/16/player/91/all_set HTTP/1.1" 200 OK
2024-03-10 21:27:47 INFO:     172.21.0.1:50984 - "PUT /games/16/player/91/update_score HTTP/1.1" 200 OK