flywheel wrote:-Asking for help from any computer programmers-
.....
Here is to
LockMash™, or whatever name it ends up with!
Thanks!
Would be a good time waster when nothing else on the forums is going on. I would not know what to write it in or how to do a number of operations as there is an unanswered question of what are the particulars? That is, web based, standalone, what type of server would it run on, configs, acceptable behaviors, and so on.
I think your weighting isn't necessary, possibly detrimental. I'll go with John Stuart Mill on this and say that the only opinion that matters is from someone who can experience both choices.
Seems simple enough though.
1. Select two random lock types, preferably with pictures.
2. User query, skip or selection
3. Add to raw score for harder lock, nothing for the other. Increment a second counter of both by one.
4. Repeat.
Rankings are determined by the percentage success of being selected as the harder difficulty. This way any new item can be added to the database at any time without having to throw out the other rankings. Some stats can be applied too like the number of votes, percentage of users that have opened a specific lock, and so on.
If it was for myself I would be a lazy bastard and store everything in a two dimensional array with four fields written to a simple text file after every query to avoid data loss. Lock name text, location of image, and the two vars. I'd just use a scripting language and a library for UI, just boring html if it was web based. It would be silly simple to add to the database. Place pic in appropriate location, add text and image name/location in a new line, done. Could be automated with an upload option to avoid any actual admin work. I don't have any publicly accessible hosting though, so can't really do it in the way you want.
*edited slightly because of stupid