Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to save a game-score?

Status
Not open for further replies.

Micro Lover

Member level 2
Member level 2
Joined
Jul 22, 2009
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
pakistan
Activity points
1,614
hi every one

i m trying to make a "Master-Mind" game with different skill levels

there are 5 levels, and one "stopwatch" to count the time; that player consume

when player select any one skill mode to start a game, the stopwatch start to count the time

the player must solve the game with in <= 10 try's. (no time limit)

the problem is how to save a score by analyzing two values,
1) how much time consumed
2) how much time user tried to solve.

eg 1.
time taken :> 5 mints and 14 sec, and 8 tries
eg 2.
time taken :> 10 mints and 34 sec, and 6 tries
eg 3.
time taken :> 20 mints and 44 sec, and 4 tries


by ranking which one will be at first position? which one is the suitable way? any formoula ? any hint?


advance thanks for every one
 

Why don you have two ranking list ?

If you choose to have a single ranking list, then it depends according to each game.
Easiest way to solve your problem is, just play the game by yourself and mark down the results.
after getting the results you can weigh the tries and time taken according to the difficulty
also ask some other to play get the table done.
make the ratings according to the improvement while playing repeatedly..

If you want a raw formula for your rank list then take the maximum of 10000

10000 / (number of secs * number of tries)

If a guy solved your game with 1 try and with 1 sec he could score 10000
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top