Open Limpan opened 7 years ago
A Problem
could consist of:
I'd suggest that we make the puzzle code JSON encoded for performance reasons. It can then be decoded either by the web server or in the users browser. I also think we need a name and an instruction for the user. Difficulty should be flexible so that it can be changed in the future. Maybe 1-100? 1-5 can then be mapped to 20, 40, 60, 80 and 100. We need a bit of flexibility for #7.
JSON encoding would work.
instruction for the user
Absolutely!
1-100 sounds like a good idea. It can be displayed in many different ways. Will make difficulties flexible if they need to change in the future.
The User
depends on #13
User
reference to an User Role
Alternative approaches:
Reward
sReward
puzzle.difficulty - (num_user_attempts * __some_scaling_factor__)
Puzzle
/ Challenge / ProblemWhatever this should be called.
Hint
sHint
User Role
if user.role.permission == UserRole.ADMIN (the constant value 1)
)Each role's available actions builds on top of each other. Admins can do everything.
Quick thoughts. It's no biggie to build a proper role system like Flasky and Chronos. It'll be flexible. I think this one will be worth it.
I'll read up on the OAuth solution that the LTI standard and It's learning uses. Maybe we're good using email as identifier but I'd like to make sure.
Progress has been made. https://github.com/Limpan/parsons-puzzle/tree/feature/database
I didn't get any notification for the last message, I'll check test this locally! :+1:
@Limpan What needs to be done on this branch?
There needs to be a proper database to manage