mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Solo: Set max difficulty for small jigsaw puzzles
(cherry picked from Android port, commit 5c9a7b64a06d07f97a41622c4b91d81f3419a51b)
This commit is contained in:

committed by
Ben Harris

parent
f967bfa87b
commit
11c1447eac
3
solo.c
3
solo.c
@ -3654,10 +3654,11 @@ static char *new_game_desc(const game_params *params, random_state *rs,
|
|||||||
* the puzzle size: all 2x2 puzzles appear to be Trivial
|
* the puzzle size: all 2x2 puzzles appear to be Trivial
|
||||||
* (DIFF_BLOCK) so we cannot hold out for even a Basic
|
* (DIFF_BLOCK) so we cannot hold out for even a Basic
|
||||||
* (DIFF_SIMPLE) one.
|
* (DIFF_SIMPLE) one.
|
||||||
|
* Jigsaw puzzles of size 2 and 3 are also all trivial.
|
||||||
*/
|
*/
|
||||||
dlev.maxdiff = params->diff;
|
dlev.maxdiff = params->diff;
|
||||||
dlev.maxkdiff = params->kdiff;
|
dlev.maxkdiff = params->kdiff;
|
||||||
if (c == 2 && r == 2)
|
if ((c == 2 && r == 2) || (r == 1 && c < 4))
|
||||||
dlev.maxdiff = DIFF_BLOCK;
|
dlev.maxdiff = DIFF_BLOCK;
|
||||||
|
|
||||||
grid = snewn(area, digit);
|
grid = snewn(area, digit);
|
||||||
|
Reference in New Issue
Block a user