After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726953 - Set a limit on the max amount of time per game
Set a limit on the max amount of time per game
Status: RESOLVED FIXED
Product: gnome-chess
Classification: Applications
Component: General
3.11.x
Other Linux
: High minor
: ---
Assigned To: Sahil Sareen
gnome-chess-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-24 04:03 UTC by Michael Catanzaro
Modified: 2014-12-17 00:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This might take a while. (46.75 KB, image/png)
2014-03-24 04:03 UTC, Michael Catanzaro
  Details
Set a limit on the max amount of time per game (1.92 KB, patch)
2014-12-04 15:16 UTC, Sahil Sareen
reviewed Details | Review
Set a limit on the max amount of time per game (2.00 KB, patch)
2014-12-04 18:15 UTC, Sahil Sareen
committed Details | Review

Description Michael Catanzaro 2014-03-24 04:03:25 UTC
Created attachment 272724 [details]
This might take a while.

Should not allow more than three digits worth of time per player.
Comment 1 Sahil Sareen 2014-12-04 15:16:33 UTC
Created attachment 292129 [details] [review]
Set a limit on the max amount of time per game

Set the time limit to

Hours    : 10
Minutes : 999

as discussed with michael on irc.
Comment 2 Michael Catanzaro 2014-12-04 17:07:17 UTC
Review of attachment 292129 [details] [review]:

Hm, I can't apply this patch. Did you have other commits behind it that aren't in master yet?

error: patch failed: src/gnome-chess.vala:1846
error: src/gnome-chess.vala: patch does not apply
Did you hand edit your patch?
It does not apply to blobs recorded in its index.

::: src/gnome-chess.vala
@@ +1851,3 @@
+        {
+        case 60:
+	     if (duration_adjustment.get_upper() != 999)

Make sure to add a space before each opening parenthesis. Your script would have caught this :p
Comment 3 Michael Catanzaro 2014-12-04 17:10:35 UTC
Also, with a time limit of 10 hours, there should be a 600-minute limit, no?
Comment 4 Sahil Sareen 2014-12-04 18:15:47 UTC
Created attachment 292141 [details] [review]
Set a limit on the max amount of time per game

Sorry for the previous broken patch, this one should patch cleanly.

Aagh, I had almost forgotten about my guideline checking script :p
Comment 5 Sahil Sareen 2014-12-04 18:16:46 UTC
(In reply to comment #3)
> Also, with a time limit of 10 hours, there should be a 600-minute limit, no?

The latest patch limits minutes to 600 and hours to 10.
Comment 6 Michael Catanzaro 2014-12-17 00:46:41 UTC
Looks good, thanks!

Attachment 292141 [details] pushed as 72054b7 - Set a limit on the max amount of time per game