home
puzzles
genres
studio
help
about
links
forum


Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
suggestion - duplicating puzzles
Forum Index -> Bugs & Suggestions
Author Message
ERANUS



Joined: 17/05/2010 11:04:14
Messages: 106
Location: Israel
Offline

For the lazy ones between us, it would be nice if there would be an easy option to duplicate a puzzle into the sandbox. For complex puzzles if one wants to check variants for a specific puzzle, it could save a lot of time, to start from the original. I imagine that placing a duplicate button, and just rewriting the generating code under a new puzzle number with the registered user name on it, would be very simple.

For instance, I would like to play with two variants of my puzzle 2081 which is in the sandbox. Is it possible for you to duplicate it as an additional new puzzle into the sandbox?
Johan


[Avatar]

Joined: 22/12/2006 20:08:51
Messages: 1046
Offline

Perhaps we could add this in the future. For now this might serve as a workaround:

1) You create your original puzzle A.
2) You copy the puzzle code you get as output from the design applet.
3) You save puzzle A.
4) You create a new puzzle and don't use the design applet, but you paste the puzzle code from A directly into the text window and save it as puzzle B.
5) You consider puzzle B as your original, because you can not graphically edit it.
6) You change puzzle A, graphically.

For existing puzzles in your sandbox, where you passed the window of opportunity (the text area) long ago, it's still possible to extract the puzzle code from the html source of the puzzle page. It might have some extra newline characters '\n', but that's ok. Don't copy the genre code with it, as this will give errors.
ERANUS



Joined: 17/05/2010 11:04:14
Messages: 106
Location: Israel
Offline

Thanks, I'll try it.

I thought of the copy paste thing from the design applet, but as you mentioned I was already passed that stage, will keep it in mind in the future.

Thanks again,
ERANUS



Joined: 17/05/2010 11:04:14
Messages: 106
Location: Israel
Offline

Works like a charm

I do not get the solution, but that is the easy part.

For those not familiar with java codes (like me) all I did was look for the area in the code. (In google chrome, in the page menu/Developer/View source (Ctrl U) I looked for the part that had compound and grid in it (As that is what happens when I press update after I start making a puzzle. In my case it was many lines that started as:

<param name=puzcode value='compound
\n{
\n grid

I erased "<param name=puzcode value='" and the final "\n'> " at the end which was after the closing "}" . The end is easy to find because it is where a new <param command starts.
anurag.sahay



Joined: 25/06/2009 11:29:52
Messages: 179
Offline

Why cant u edit B graphically?
Johan


[Avatar]

Joined: 22/12/2006 20:08:51
Messages: 1046
Offline

anurag.sahay wrote:
Why cant u edit B graphically? 
Because the design applet maintains a design-representation of the puzzle. From this the puzzle-representation can be derived, but not the other way around. When the puzzle-representation is updated manually, the design-representation is not. When puzzle B is created by entering the puzzle-representation directly, it is basically associated with an empty design representation.
 
Forum Index -> Bugs & Suggestions
Go to:   
Powered by JForum 2.1.6 © JForum Team