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 409779 - [PATCH] Re-add UI seed support, freecell redmond-style game generation
[PATCH] Re-add UI seed support, freecell redmond-style game generation
Status: RESOLVED OBSOLETE
Product: aisleriot
Classification: Other
Component: general
pre-3.0
Other All
: Normal enhancement
: ---
Assigned To: aisleriot-maint
aisleriot-maint
Depends on:
Blocks:
 
 
Reported: 2007-02-19 21:53 UTC by Jonathan Bastien-Filiatrault
Modified: 2021-06-02 11:33 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
seed support, redmond-style freecell (7.73 KB, patch)
2007-02-19 21:55 UTC, Jonathan Bastien-Filiatrault
needs-work Details | Review
New patch against latest gnome-games SVN. (9.02 KB, patch)
2007-08-25 18:12 UTC, Jonathan Bastien-Filiatrault
needs-work Details | Review
Aisleriot with redmond freecell support (differences highlighted) (183.26 KB, image/png)
2007-08-25 18:13 UTC, Jonathan Bastien-Filiatrault
  Details

Description Jonathan Bastien-Filiatrault 2007-02-19 21:53:35 UTC
Here is my patch to re-add UI seed support and add redmond-style freecell game numbers, I estimate it is clean enough. I hope the UI change is unobtrusive enough, I am not great at designing user interfaces. The code itself was tested using gnome-games 2.16.3 (debian), I have applied my changes to the latest svn revision by hand since updating my build environment would be quite cumbersome using debian, the changes seem minor enough, just be sure to double-check.

PS: The GTK, C, Scheme combo has kind of grown on me, I might use something similar in future personal projects.

Cheers guys, keep up the great work,
Jonathan
Comment 1 Jonathan Bastien-Filiatrault 2007-02-19 21:55:23 UTC
Created attachment 82919 [details] [review]
seed support, redmond-style freecell
Comment 2 Andreas Røsdal 2007-02-20 06:48:49 UTC
Thanks, I'll look at this during the 2.19.x development cycle.
Comment 3 Jonathan Bastien-Filiatrault 2007-03-31 15:30:11 UTC
Hi,
Have you reviewed the patch ?
Could you give me a status update so I can make any necessary modifications...thanks. 
Comment 4 Christian Persch 2007-06-02 12:28:44 UTC
The patch doesn't apply to svn anymore since the landing of new-aisleriot.
Comment 5 Thomas Andersen 2007-08-18 00:46:49 UTC
We're past both feature and UI freeze. This will have to wait until 2.21. Jonathan if you can update your patch so it applies to svn that would help a lot to get this in. I also suggest you post a screenshot of the changed UI. That way it's easier for people to comment on that part. Thanks.
Comment 6 Jonathan Bastien-Filiatrault 2007-08-25 15:29:11 UTC
I have started to work on re-making the patch to the latest svn. Took me a while to figure out that librsvg-dev needed to be installed to properly render card themes. Expect something today or tomorrow.
Comment 7 Jonathan Bastien-Filiatrault 2007-08-25 18:12:12 UTC
Created attachment 94324 [details] [review]
New patch against latest gnome-games SVN.

I have re-done the patch. It brings seed selection out of hiding and enhances freecell.scm. I believe the patch is relatively clean.
Comment 8 Jonathan Bastien-Filiatrault 2007-08-25 18:13:15 UTC
Created attachment 94325 [details]
Aisleriot with redmond freecell support (differences highlighted)
Comment 9 Christian Persch 2007-08-29 20:08:25 UTC
(Please create patches with diff -up, since that adds more context info.)

I'm not sure we should re-add the seed number to the window title...

but even if we do, this addition in aisleriot_window_set_game

+  game_name = aisleriot_util_get_display_filename(game_file);
+
+  title = g_strdup_printf("%s #%u",game_name, seed);
+  g_free (game_name);
+
+  gtk_window_set_title (GTK_WINDOW (window), title);
+  g_free(title);

is definitely wrong; the title is set again when the game really is started and that's the only time we need to set the title.

+    { "ChooseSeed", GTK_STOCK_JUMP_TO, _("_Choose seed"), NULL, NULL,
+      G_CALLBACK (choose_seed_cb) },

Does the user understand what 'seed' means and why he'd want to choose one?
Maybe "Choose game by number" or sth like that...

+    seed_scm = g_strdup_printf("(set-seed %u)", game->seed);
+    scm_c_eval_string(seed_scm);
+    g_free(seed_scm);

That's an ugly hack. Just invoke the func with the correct API:
scm_call_1 (func, scm_to_int (game->seed))

Or perhaps make it an (optional) argument to the start_game function ?
Comment 10 Christian Persch 2007-12-21 13:57:51 UTC
Any chance for an updated patch?
Comment 11 Jonathan Bastien-Filiatrault 2007-12-21 15:59:06 UTC
Ya, sorry, got kind of discouraged.

Where would you see the game number selection dialog ?
Comment 12 Christian Persch 2008-01-01 18:32:22 UTC
Since this is about giving *Freecell* the ability to choose the game by number/seed, I think we should not show this UI for every game. Instead we should add a 'feature' bit for 'show seed UI' and enable that bit for freecell only.
Comment 13 Christian Persch 2008-03-25 12:02:41 UTC
Re-assigning to default owner.
Comment 14 Christian Persch 2008-08-02 21:23:39 UTC
I'm sorry but this didn't make it in before feature freeze, again. Retargeting.
Comment 15 Christian Persch 2009-01-06 19:12:42 UTC
UI freeze is in 4 weeks; would be good to get this in for 2.26. Patch needs to be updated (see comment 12).
Comment 16 Jonathan Bastien-Filiatrault 2009-01-06 23:31:48 UTC
(In reply to comment #15)
> UI freeze is in 4 weeks; would be good to get this in for 2.26. Patch needs to
> be updated (see comment 12).
> 

Agreed, I will give this another try very soon.
Comment 17 Michael Miceli 2009-03-15 04:41:28 UTC
(set-features droppable-feature)
(set-lambda new-game button-pressed button-released button-clicked button-double-clicked game-over game-won get-hint get-options apply-options timeout droppable?)

Is this the line we are talking about? (1009-1011) in freecell.scm
Comment 18 Christian Persch 2009-08-13 13:50:33 UTC
Feature & UI freeze is upon us again; this missed yet another cycle.
Comment 19 Christian Persch 2009-11-27 18:25:43 UTC
Ping?
Comment 20 Christian Persch 2011-04-25 12:05:33 UTC
Mass-moving only open aisleriot bugs to the new product. Search for "aisleriot-mass-move" to filter them.
Comment 21 Christian Persch 2018-09-09 20:58:41 UTC
Taking this as a general 'freecell' improvement bug, so I'm adding this suggestion received by email from an user:

Scoring:
> And if you want to add a new scoring factor to FreeCell, one of the 
> things I strive for the most is to move the largest number of card in 
> the flourish of cards to the Home cells when the game ends.  The best 
> flourish I have ever had is 48 cards!

Option to disable auto-play:
> And if you add a check box that will turn the automatic play from the 
> tableau to the home cells off, it will be possible to have a 52 card 
> flourish!
Comment 22 GNOME Infrastructure Team 2021-06-02 11:33:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/aisleriot/-/issues/79.