reset password
Author Message
jpatel29
Posts: 5
Posted 22:27 May 17, 2014 |

Hello Prof,

 What must be the Game Lenght format ?

 Assume a case where users starts playing a Game on 1st Jan 2013 at 01:00:00:0000 and saves that Game. Then the user resumes the Game and wins the Game on 7th May 2014 at 3:05:05:432. Now what Should be  the length ?.

a. 0001-05-07 02:05:05:0432.

b. 1-5-7 2:5:5:432

c. A long number showing duration completely in mins or secs or milliSecs ?.

d. anything other then this ?..

 

Win Rate must be in till 4 decimals or 2 or a long number ?

Assume  No_of_won_games = 5 and No_of_games_played = 9, then Win Rate must be 

a. 0.5555555555555556.

b. 0.56.

c. 0.5556   ?

Last edited by jpatel29 at 22:40 May 17, 2014.
cysun
Posts: 2935
Posted 08:21 May 18, 2014 |

Given the typical length of a Tic Tac Toe game, I'd say displaying game length in minutes and/or seconds is appropriate. The proper way to handle saved/resumed games is to keep track actual game play time of these games instead of just using (endTime - startTime) as the game length. This is not hard to do but it's not required - for this assignment it's OK to display a long number as game length for the saved/resumed games.

For win rate, it should be a percentage with two digits after the decimal point, e.g. 55.56%.

hhuang30
Posts: 40
Posted 09:34 May 18, 2014 |
cysun wrote:

Given the typical length of a Tic Tac Toe game, I'd say displaying game length in minutes and/or seconds is appropriate. The proper way to handle saved/resumed games is to keep track actual game play time of these games instead of just using (endTime - startTime) as the game length. This is not hard to do but it's not required - for this assignment it's OK to display a long number as game length for the saved/resumed games.

For win rate, it should be a percentage with two digits after the decimal point, e.g. 55.56%.

why?

cysun
Posts: 2935
Posted 09:59 May 18, 2014 |
hhuang30 wrote:
cysun wrote:

Given the typical length of a Tic Tac Toe game, I'd say displaying game length in minutes and/or seconds is appropriate. The proper way to handle saved/resumed games is to keep track actual game play time of these games instead of just using (endTime - startTime) as the game length. This is not hard to do but it's not required - for this assignment it's OK to display a long number as game length for the saved/resumed games.

For win rate, it should be a percentage with two digits after the decimal point, e.g. 55.56%.

why?

Let's say I started a game today at 8am then saved it at 8:01. Tomorrow I resume the game at 8am and finish it 5 seconds later. Obviously the actual game length is 1 minute 5 second,  but if you go by (end time - start time) it becomes 1441 minutes and 5 seconds.