aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-07 12:35:04 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-07 12:35:04 +0000
commit6336dbf208078af6eef51669510e885a91ca64b8 (patch)
treec3ae0f6a0c3312ac1a81d648a40a26dd51757e82
parent944997d2f936150d8efbaba6dcb3e237b5658761 (diff)
downloadpuzzles-6336dbf208078af6eef51669510e885a91ca64b8.zip
puzzles-6336dbf208078af6eef51669510e885a91ca64b8.tar.gz
puzzles-6336dbf208078af6eef51669510e885a91ca64b8.tar.bz2
puzzles-6336dbf208078af6eef51669510e885a91ca64b8.tar.xz
Add 3x3 Trivial to the presets list, and make it the default.
[originally from svn r5757]
-rw-r--r--solo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/solo.c b/solo.c
index 3cb050d..c943ed4 100644
--- a/solo.c
+++ b/solo.c
@@ -116,7 +116,7 @@ static game_params *default_params(void)
ret->c = ret->r = 3;
ret->symm = SYMM_ROT2; /* a plausible default */
- ret->diff = DIFF_SIMPLE; /* so is this */
+ ret->diff = DIFF_BLOCK; /* so is this */
return ret;
}
@@ -141,6 +141,7 @@ static int game_fetch_preset(int i, char **name, game_params **params)
} presets[] = {
{ "2x2 Trivial", { 2, 2, SYMM_ROT2, DIFF_BLOCK } },
{ "2x3 Basic", { 2, 3, SYMM_ROT2, DIFF_SIMPLE } },
+ { "3x3 Trivial", { 3, 3, SYMM_ROT2, DIFF_BLOCK } },
{ "3x3 Basic", { 3, 3, SYMM_ROT2, DIFF_SIMPLE } },
{ "3x3 Intermediate", { 3, 3, SYMM_ROT2, DIFF_INTERSECT } },
{ "3x3 Advanced", { 3, 3, SYMM_ROT2, DIFF_SET } },
@@ -164,6 +165,7 @@ static game_params *decode_params(char const *string)
ret->c = ret->r = atoi(string);
ret->symm = SYMM_ROT2;
+ ret->diff = DIFF_BLOCK;
while (*string && isdigit((unsigned char)*string)) string++;
if (*string == 'x') {
string++;