diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2020-09-13 10:25:57 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2020-09-13 10:25:57 +0200 |
| commit | e0e21d5e120010607ea93b746953ad9a28550078 (patch) | |
| tree | 0a84c5290f5addbba1126ed8ba54df9dbd9f9d89 /src/helppages.h | |
| parent | 0283a15ef9feeb7755f93f08de6c5204591d5381 (diff) | |
| download | nissy-e0e21d5e120010607ea93b746953ad9a28550078.tar.gz nissy-e0e21d5e120010607ea93b746953ad9a28550078.zip | |
Copied documentation into code
Diffstat (limited to '')
| -rw-r--r-- | src/helppages.h | 645 |
1 files changed, 645 insertions, 0 deletions
diff --git a/src/helppages.h b/src/helppages.h new file mode 100644 index 0000000..5ee0e4a --- /dev/null +++ b/src/helppages.h | |||
| @@ -0,0 +1,645 @@ | |||
| 1 | /* To generate this help page, use the script makedoc.sh */ | ||
| 2 | |||
| 3 | int Npages = 21; | ||
| 4 | |||
| 5 | char *helppages[][10] = { | ||
| 6 | |||
| 7 | { "add", | ||
| 8 | "\ | ||
| 9 | \n\ | ||
| 10 | HELP PAGE FOR COMMAND add\n\ | ||
| 11 | \n\ | ||
| 12 | SYNTAX\n\ | ||
| 13 | add [MOVES|$ID1|@ID1] $ID2\n\ | ||
| 14 | \n\ | ||
| 15 | DESCRIPTION\n\ | ||
| 16 | Appends either MOVES, the scramble memorized under $ID1 or the output sequence\n\ | ||
| 17 | memorized under @ID1 at the end of the scramble memorized under $ID2. If none\n\ | ||
| 18 | of MOVES, $ID1 or @ID1 is specified, the user will be asked to type the moves.\n\ | ||
| 19 | Menmonic: \"add x to y\" or just \"add to y\".\n\ | ||
| 20 | \n\ | ||
| 21 | EXAMPLES\n\ | ||
| 22 | add $1\n\ | ||
| 23 | The user is required to type the moves that will be appended to $1.\n\ | ||
| 24 | add F R B $1\n\ | ||
| 25 | Appends the moves F R B to scramble $1. Now scramble $1 ends with F R B.\n\ | ||
| 26 | \n\ | ||
| 27 | " | ||
| 28 | }, | ||
| 29 | |||
| 30 | { "change", | ||
| 31 | "\ | ||
| 32 | \n\ | ||
| 33 | HELP PAGE FOR COMMAND change\n\ | ||
| 34 | \n\ | ||
| 35 | SYNTAX\n\ | ||
| 36 | change $ID1 [MOVES|$ID2|@ID2]\n\ | ||
| 37 | \n\ | ||
| 38 | DESCRIPTION\n\ | ||
| 39 | Changes the scramble $ID1 to either MOVES, the scramble $ID2, the output @ID2\n\ | ||
| 40 | or, if none is specified, the moves entered by the user. The scramble that was\n\ | ||
| 41 | memorized under $ID1 is then lost.\n\ | ||
| 42 | Mnemonic: \"change x to y\", or just \"change x\".\n\ | ||
| 43 | \n\ | ||
| 44 | EXAMPLES\n\ | ||
| 45 | change $1\n\ | ||
| 46 | The user is required to type the moves that will replace $1.\n\ | ||
| 47 | change $2 $3\n\ | ||
| 48 | Saves the scramble that was saved under $3 in $2. Now $2 and $3 are the same\n\ | ||
| 49 | scrambles, and the old $2 is lost.\n\ | ||
| 50 | change $1 U R\n\ | ||
| 51 | Saves U R as scramble $1.\n\ | ||
| 52 | \n\ | ||
| 53 | " | ||
| 54 | }, | ||
| 55 | |||
| 56 | { "clear", | ||
| 57 | "\ | ||
| 58 | \n\ | ||
| 59 | HELP PAGE FOR COMMAND clear\n\ | ||
| 60 | \n\ | ||
| 61 | SYNTAX\n\ | ||
| 62 | clear\n\ | ||
| 63 | \n\ | ||
| 64 | DESCRIPTION\n\ | ||
| 65 | Resets all saved scrambles and output sequences.\n\ | ||
| 66 | \n\ | ||
| 67 | " | ||
| 68 | }, | ||
| 69 | |||
| 70 | { "dr", | ||
| 71 | "\ | ||
| 72 | \n\ | ||
| 73 | HELP PAGE FOR COMMAND dr\n\ | ||
| 74 | \n\ | ||
| 75 | SYNTAX\n\ | ||
| 76 | dr [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 77 | \n\ | ||
| 78 | DESCRIPTION\n\ | ||
| 79 | Solves DR for a given scramble. A scramble can be given as last argument of the\n\ | ||
| 80 | command, or an ID of a saved scramble can be provided. If none of the two is\n\ | ||
| 81 | given, a prompt will ask the user to input a new scramble.\n\ | ||
| 82 | If the option \"from\" is given (see below), it solves DR from an EO (if edges\n\ | ||
| 83 | are oriented) without breaking that EO.\n\ | ||
| 84 | The first time this command is called without the option from (and, to some\n\ | ||
| 85 | extent, also the first time it is called with the option from), nissy loads\n\ | ||
| 86 | some pruning tables that were not loaded on startup, causing a small but\n\ | ||
| 87 | noticeable delay.\n\ | ||
| 88 | \n\ | ||
| 89 | OPTIONS\n\ | ||
| 90 | axis={fb,rl,ud} Specify the axis for the DR. One to three axes can be given,\n\ | ||
| 91 | comma separated, no spaces.\n\ | ||
| 92 | Default: DR on any of the three axis (omitting the option is\n\ | ||
| 93 | the same as specifying axis=fb,rl,ud).\n\ | ||
| 94 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 95 | Default value: 20.\n\ | ||
| 96 | h Show hidden DRs.\n\ | ||
| 97 | Default, if an DR ending in e.g. R is shown, the equivalent\n\ | ||
| 98 | one ending in R' is hidden.\n\ | ||
| 99 | from {fb|rl|ud} Solve DR from the specified EO, which must be solved,\n\ | ||
| 100 | without breaking the EO.\n\ | ||
| 101 | niss Use NISS. It works only if solving DR from EO.\n\ | ||
| 102 | Default: does not use NISS.\n\ | ||
| 103 | n=N Specify a maximum number of EOs to be output. N must be a\n\ | ||
| 104 | number.\n\ | ||
| 105 | Default value: 1.\n\ | ||
| 106 | \n\ | ||
| 107 | EXAMPLES\n\ | ||
| 108 | dr from rl axis=ud $1\n\ | ||
| 109 | Finds optimal DR on ud, starting from EO on rl, for the first saved scramble.\n\ | ||
| 110 | \n\ | ||
| 111 | dr niss from fb n=10 m=6 F2 R L B' F D U' R2 L' F D B\n\ | ||
| 112 | Finds up to 10 DRs of length at most 6 from EO on fb, possibly using NISS.\n\ | ||
| 113 | \n\ | ||
| 114 | dr n=100 axis=ud h\n\ | ||
| 115 | Finds 100 DRs on ud, including \"hidden\" DRs.\n\ | ||
| 116 | \n\ | ||
| 117 | " | ||
| 118 | }, | ||
| 119 | |||
| 120 | { "drcorners", | ||
| 121 | "\ | ||
| 122 | \n\ | ||
| 123 | HELP PAGE FOR COMMAND drcorners\n\ | ||
| 124 | \n\ | ||
| 125 | SYNTAX\n\ | ||
| 126 | drcorners [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 127 | \n\ | ||
| 128 | DESCRIPTION\n\ | ||
| 129 | Similar to drfinish, but only solves corners. CO must be solved. The scramble\n\ | ||
| 130 | can be given as the last argument of the command, or it may be given as an $ID\n\ | ||
| 131 | or @ID, or it can be typed out on the following line.\n\ | ||
| 132 | \n\ | ||
| 133 | OPTIONS\n\ | ||
| 134 | from {ud|fb|rl} Allows to specify on which axis the CO is solved. It is\n\ | ||
| 135 | usually not necessary, since nissy will find a CO on any\n\ | ||
| 136 | axis.\n\ | ||
| 137 | i Ignores E-layer centers. By default cornersare solved\n\ | ||
| 138 | relatively to centers; this options allows for solutions\n\ | ||
| 139 | which solve corners relatively to each other and to the\n\ | ||
| 140 | U and D sides, but not to the E layer (or any equivalent\n\ | ||
| 141 | if the CO is not on U/D).\n\ | ||
| 142 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 143 | Default value: 20.\n\ | ||
| 144 | n=N Specify a maximum number of solutions to be output. N must\n\ | ||
| 145 | be a number.\n\ | ||
| 146 | Default value: 1.\n\ | ||
| 147 | \n\ | ||
| 148 | EXAMPLES\n\ | ||
| 149 | drcorners n=3 R' D R2 D' R' U2 R D R' U2 R' D' R\n\ | ||
| 150 | Produces the following output:\n\ | ||
| 151 | Found 3 results.\n\ | ||
| 152 | @1: U' F2 U R2 U2 F2 U F2 U R2 (10)\n\ | ||
| 153 | @2: U' F2 U R2 U2 B2 U R2 D R2 (10)\n\ | ||
| 154 | @3: U' F2 U R2 U2 B2 U L2 U L2 (10)\n\ | ||
| 155 | \n\ | ||
| 156 | " | ||
| 157 | }, | ||
| 158 | |||
| 159 | { "drfinish", | ||
| 160 | "\ | ||
| 161 | \n\ | ||
| 162 | HELP PAGE FOR COMMAND drfinish\n\ | ||
| 163 | \n\ | ||
| 164 | SYNTAX\n\ | ||
| 165 | drfinish [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 166 | \n\ | ||
| 167 | DESCRIPTION\n\ | ||
| 168 | Solves the given scramble using the DR moveset. DR must be solved. The scramble\n\ | ||
| 169 | can be given as the last argument of the command, or it may be given as an $ID\n\ | ||
| 170 | or @ID, or it can be typed out on the following line.\n\ | ||
| 171 | \n\ | ||
| 172 | OPTIONS\n\ | ||
| 173 | from {ud|fb|rl} Allows to specify on which axis the DR is solved. It is\n\ | ||
| 174 | usually not necessary, since nissy will find a DR on any\n\ | ||
| 175 | axis, but it can be useful if one want to e.g. solve an HTR\n\ | ||
| 176 | state allowing quarter-turns from a specific DR.\n\ | ||
| 177 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 178 | Default value: 20.\n\ | ||
| 179 | n=N Specify a maximum number of solutions to be output. N must\n\ | ||
| 180 | be a number.\n\ | ||
| 181 | Default value: 1.\n\ | ||
| 182 | \n\ | ||
| 183 | EXAMPLES\n\ | ||
| 184 | dr from ud R L' U2 R' L F2\n\ | ||
| 185 | Solves the given scramble using the moveset <U,D,R2,L2,F2,B2>. In this case:\n\ | ||
| 186 | @1: U2 R2 F2 R2 U2 R2 F2 R2 (8)\n\ | ||
| 187 | drfinish b=7 n=10 $1\n\ | ||
| 188 | Finds (at most) 10 solutions of length at most 7 for the scramble $1.\n\ | ||
| 189 | \n\ | ||
| 190 | " | ||
| 191 | }, | ||
| 192 | |||
| 193 | { "eo", | ||
| 194 | "\ | ||
| 195 | \n\ | ||
| 196 | HELP PAGE FOR COMMAND eo\n\ | ||
| 197 | \n\ | ||
| 198 | SYNTAX\n\ | ||
| 199 | eo [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 200 | \n\ | ||
| 201 | DESCRIPTION\n\ | ||
| 202 | Solves EO for a given scramble. A scramble can be given as last argument of the\n\ | ||
| 203 | command, or an ID of a saved scramble can be provided. If none of the two is\n\ | ||
| 204 | given, a prompt will ask the user to input a new scramble.\n\ | ||
| 205 | \n\ | ||
| 206 | OPTIONS\n\ | ||
| 207 | axis={fb,rl,ud} Specify the axis for the EO. One to three axes can be given,\n\ | ||
| 208 | comma separated, no spaces.\n\ | ||
| 209 | Default: EO on any of the three axis (omitting the option is\n\ | ||
| 210 | the same as specifying axis=fb,rl,ud).\n\ | ||
| 211 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 212 | Default value: 20.\n\ | ||
| 213 | h Show hidden EOs.\n\ | ||
| 214 | Default, if an EO ending in e.g. F is shown, the equivalent\n\ | ||
| 215 | one ending in F' is hidden.\n\ | ||
| 216 | niss Use NISS.\n\ | ||
| 217 | Default: does not use NISS.\n\ | ||
| 218 | n=N Specify a maximum number of EOs to be output. N must be a\n\ | ||
| 219 | number.\n\ | ||
| 220 | Default value: 1.\n\ | ||
| 221 | \n\ | ||
| 222 | EXAMPLES\n\ | ||
| 223 | eo axis=fb $1\n\ | ||
| 224 | Finds one optimal EO on fb for the first saved scramble.\n\ | ||
| 225 | \n\ | ||
| 226 | eo n=5 b=4 U R F \n\ | ||
| 227 | Finds up to 5 EOs of length at most 4 for scramble U R F.\n\ | ||
| 228 | \n\ | ||
| 229 | eo n=100 b=5 niss axis=fb,ud h R' U' F L R'U'F\n\ | ||
| 230 | Finds up to 100 EOs of lenth at most 4, possibly using NISS, including\n\ | ||
| 231 | \"hidden\" EOs, excluding the rl axis.\n\ | ||
| 232 | \n\ | ||
| 233 | " | ||
| 234 | }, | ||
| 235 | |||
| 236 | { "exit", | ||
| 237 | "\ | ||
| 238 | \n\ | ||
| 239 | HELP PAGE FOR COMMAND exit\n\ | ||
| 240 | \n\ | ||
| 241 | SYNTAX\n\ | ||
| 242 | exit\n\ | ||
| 243 | \n\ | ||
| 244 | DESCRIPTION\n\ | ||
| 245 | Exits nissy.\n\ | ||
| 246 | \n\ | ||
| 247 | " | ||
| 248 | }, | ||
| 249 | |||
| 250 | { "help", | ||
| 251 | "\ | ||
| 252 | \n\ | ||
| 253 | HELP PAGE FOR COMMAND help\n\ | ||
| 254 | \n\ | ||
| 255 | SYNTAX\n\ | ||
| 256 | help [nissy|COMMAND]\n\ | ||
| 257 | \n\ | ||
| 258 | DESCRIPTION\n\ | ||
| 259 | 'help nissy' prints a general user manual. 'help COMMAND' prints a detailed\n\ | ||
| 260 | help page for the command COMMAND, if it exists. 'help' prints a list of all\n\ | ||
| 261 | available commands a short description for each.\n\ | ||
| 262 | \n\ | ||
| 263 | EXAMPLES\n\ | ||
| 264 | help help\n\ | ||
| 265 | Prints this help page.\n\ | ||
| 266 | \n\ | ||
| 267 | " | ||
| 268 | }, | ||
| 269 | |||
| 270 | { "htr", | ||
| 271 | "\ | ||
| 272 | \n\ | ||
| 273 | HELP PAGE FOR COMMAND htr\n\ | ||
| 274 | \n\ | ||
| 275 | SYNTAX\n\ | ||
| 276 | htr [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 277 | \n\ | ||
| 278 | DESCRIPTION\n\ | ||
| 279 | Finds HTR for a given scramble. DR must be solved. A scramble can be given as\n\ | ||
| 280 | last argument of the command, or an ID of a saved scramble can be provided. If\n\ | ||
| 281 | none of the two is given, a prompt will ask the user to input a new scramble.\n\ | ||
| 282 | \n\ | ||
| 283 | OPTIONS\n\ | ||
| 284 | from {ud|fb|rl} Allows to specify on which axis the DR is. This is usually\n\ | ||
| 285 | not needed, since nissy will automatically find it out.\n\ | ||
| 286 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 287 | Default value: 20.\n\ | ||
| 288 | h Show hidden HTRs.\n\ | ||
| 289 | Default, if an HTR ending in e.g. R is shown, the equivalent\n\ | ||
| 290 | one ending in R' is hidden.\n\ | ||
| 291 | niss Use NISS.\n\ | ||
| 292 | Default: does not use NISS.\n\ | ||
| 293 | n=N Specify a maximum number of HTRs to be output. N must be a\n\ | ||
| 294 | number.\n\ | ||
| 295 | Default value: 1.\n\ | ||
| 296 | \n\ | ||
| 297 | EXAMPLES\n\ | ||
| 298 | eo n=10 b=7 niss $1\n\ | ||
| 299 | Finds up to 100 HTRs of lenth at most 7, possibly using NISS, including\n\ | ||
| 300 | \"hidden\" HTRs, for scramble $1. DR must be solved.\n\ | ||
| 301 | \n\ | ||
| 302 | " | ||
| 303 | }, | ||
| 304 | |||
| 305 | { "htrfinish", | ||
| 306 | "\ | ||
| 307 | \n\ | ||
| 308 | HELP PAGE FOR COMMAND htrfinish\n\ | ||
| 309 | \n\ | ||
| 310 | SYNTAX\n\ | ||
| 311 | htrfinish [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 312 | \n\ | ||
| 313 | DESCRIPTION\n\ | ||
| 314 | Similar to drfinish, but uses the moveset <U2,D2,R2,L2,F2,B2>. HTR must be\n\ | ||
| 315 | solved. The scramble can be given as the last argument of the command, or it\n\ | ||
| 316 | may be given as an $ID or @ID, or it can be typed out on the following line.\n\ | ||
| 317 | \n\ | ||
| 318 | OPTIONS\n\ | ||
| 319 | b=N Specify a bound for the number of moves. N must be a number.\n\ | ||
| 320 | Default value: 20.\n\ | ||
| 321 | n=N Specify a maximum number ofsolutions to be output. N must be\n\ | ||
| 322 | a number.\n\ | ||
| 323 | Default value: 1.\n\ | ||
| 324 | \n\ | ||
| 325 | EXAMPLES\n\ | ||
| 326 | htrfinish R L' U2 R' L F2\n\ | ||
| 327 | Produces the following solution:\n\ | ||
| 328 | @1: U2 R2 F2 R2 U2 R2 F2 R2 (8)\n\ | ||
| 329 | \n\ | ||
| 330 | " | ||
| 331 | }, | ||
| 332 | |||
| 333 | { "invert", | ||
| 334 | "\ | ||
| 335 | \n\ | ||
| 336 | HELP PAGE FOR COMMAND invert\n\ | ||
| 337 | \n\ | ||
| 338 | SYNTAX\n\ | ||
| 339 | invert [MOVES|$ID|@ID]\n\ | ||
| 340 | \n\ | ||
| 341 | DESCRIPTION\n\ | ||
| 342 | Inverts a sequence of moves, which can be given also as $ID or @ID. The given\n\ | ||
| 343 | sequence must not use NISS (if it does, use the command unniss first).\n\ | ||
| 344 | \n\ | ||
| 345 | EXAMPLES\n\ | ||
| 346 | invert F R D'\n\ | ||
| 347 | Prints D R' F'\n\ | ||
| 348 | \n\ | ||
| 349 | " | ||
| 350 | }, | ||
| 351 | |||
| 352 | { "nissy", | ||
| 353 | "\ | ||
| 354 | \n\ | ||
| 355 | *******************************************************************************\n\ | ||
| 356 | ********************* NISSY: a cube solver and FMC helper *********************\n\ | ||
| 357 | *******************************************************************************\n\ | ||
| 358 | \n\ | ||
| 359 | If you just want to solve the cube, type 'solve' followed by the scramble. This\n\ | ||
| 360 | will not always give you an optimal solution, unless it is 10 moves or less or\n\ | ||
| 361 | you use the \"o\" option. Finding the optimal solution might take very long if it\n\ | ||
| 362 | is 16 moves or more, especially for the first time.\n\ | ||
| 363 | \n\ | ||
| 364 | Now the fun stuff. With nissy you can save and manipulate move sequences, for\n\ | ||
| 365 | example:\n\ | ||
| 366 | \n\ | ||
| 367 | nissy-# save R' U' F\n\ | ||
| 368 | $1: R' U' F\n\ | ||
| 369 | nissy-# add L2D' $1\n\ | ||
| 370 | $1: R' U' F L2 D'\n\ | ||
| 371 | \n\ | ||
| 372 | You can then ask nissy to solve certain substepson a saved scramble:\n\ | ||
| 373 | \n\ | ||
| 374 | nissy-# eo axis=rl $1\n\ | ||
| 375 | @1: U D F' R (4)\n\ | ||
| 376 | \n\ | ||
| 377 | And of course it uses also NISS, if you ask:\n\ | ||
| 378 | \n\ | ||
| 379 | nissy-# eo niss axis=rl $1\n\ | ||
| 380 | @1: (R) (1)\n\ | ||
| 381 | \n\ | ||
| 382 | Notice that the sequences you save are marked with a $, while the \"output\"\n\ | ||
| 383 | sequences are marked with @. The difference between these two type of sequences\n\ | ||
| 384 | is that those marked with @ are temporary and get lost once you get new output.\n\ | ||
| 385 | Most commands accept as input either a move sequence typed out, a $-sequence or\n\ | ||
| 386 | a @-sequence. For example, you can however save a @-sequence and make it\n\ | ||
| 387 | persistent:\n\ | ||
| 388 | \n\ | ||
| 389 | nissy-# save @1\n\ | ||
| 390 | $2: (R)\n\ | ||
| 391 | \n\ | ||
| 392 | Nissy also understands NISS. Let's see a more complicated example where you\n\ | ||
| 393 | save a scramble, ask for some EOs (using NISS) and then a DR on inverse:\n\ | ||
| 394 | \n\ | ||
| 395 | nissy-# save R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F\n\ | ||
| 396 | $3: R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F \n\ | ||
| 397 | nissy-# eo n=10 niss axis=fb,rl $3\n\ | ||
| 398 | Found 10 results.\n\ | ||
| 399 | @1: (U' L B D F) (5)\n\ | ||
| 400 | @2: (U' L B' D F) (5)\n\ | ||
| 401 | @3: (L B U D F) (5)\n\ | ||
| 402 | @4: (L B' U D F) (5)\n\ | ||
| 403 | @5: R U B U L (5)\n\ | ||
| 404 | @6: R U' L (B L) (5)\n\ | ||
| 405 | @7: R U' B U L (5)\n\ | ||
| 406 | @8: R L (L B L) (5)\n\ | ||
| 407 | @9: R (U2 D' F R) (5)\n\ | ||
| 408 | @10: R (U2 F D' R) (5)\n\ | ||
| 409 | nissy-# add @6 $3\n\ | ||
| 410 | $3: R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F R U' L (B L) \n\ | ||
| 411 | nissy-# unniss $3\n\ | ||
| 412 | @1: L' B' R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F R U' L \n\ | ||
| 413 | nissy-# invert @1\n\ | ||
| 414 | @1: L' U R' F' U R F2 U2 D' R D' R' U D' B D2 R2 U' L2 U' R2 D' R2 F2 R2 U' R' F' U R B L \n\ | ||
| 415 | nissy-# save @1\n\ | ||
| 416 | $5: L' U R' F' U R F2 U2 D' R D' R' U D' B D2 R2 U' L2 U' R2 D' R2 F2 R2 U' R' F' U R B L \n\ | ||
| 417 | nissy-# dr from rl $5\n\ | ||
| 418 | @1: F2 U D2 F' B D B (7)\n\ | ||
| 419 | nissy-# \n\ | ||
| 420 | \n\ | ||
| 421 | If you ask nissy to solve a substep (or the whole cube) using a sequence with\n\ | ||
| 422 | NISS as scramble, it will first un-NISS it (but without saving the unNISSed\n\ | ||
| 423 | scramble anywhere):\n\ | ||
| 424 | \n\ | ||
| 425 | print $3\n\ | ||
| 426 | $3: R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F R U' L (B L) \n\ | ||
| 427 | nissy-# solve $3\n\ | ||
| 428 | @1: F U' R2 F2 U2 F U2 R2 L2 D R2 U B2 D' L2 D B2 D2 (18)\n\ | ||
| 429 | \n\ | ||
| 430 | Nissy knows how to solve certain common sub-steps for DR (or Thistlethwaite /\n\ | ||
| 431 | Kociemba algorithms). For now it does know more common speedsolving methods.\n\ | ||
| 432 | \n\ | ||
| 433 | For a full list of commands type \"help\". For a more detailed help on a specific\n\ | ||
| 434 | command, type \"help (command)\". The help pages can also be found in the docs\n\ | ||
| 435 | folder.\n\ | ||
| 436 | \n\ | ||
| 437 | If you want to report a bug (I'm sure there are many!) or give a suggestion,\n\ | ||
| 438 | you can send an email to sebastiano.tronto@gmail.com.\n\ | ||
| 439 | \n\ | ||
| 440 | Have fun!\n\ | ||
| 441 | \n\ | ||
| 442 | " | ||
| 443 | }, | ||
| 444 | |||
| 445 | { "pic", | ||
| 446 | "\ | ||
| 447 | \n\ | ||
| 448 | HELP PAGE FOR COMMAND pic\n\ | ||
| 449 | \n\ | ||
| 450 | SYNTAX\n\ | ||
| 451 | pic [MOVES|$ID|@ID]\n\ | ||
| 452 | \n\ | ||
| 453 | DESCRIPTION\n\ | ||
| 454 | Prints the cube state after applying the given scramble.\n\ | ||
| 455 | \n\ | ||
| 456 | EXAMPLES\n\ | ||
| 457 | pic R' U' F R U R2 F2 R2 D R2 U L2 U R2 D2 B' D U' R D R' D U2 F2 R' U' F \n\ | ||
| 458 | Gives the following output:\n\ | ||
| 459 | UF UL UB UR DF DL DB DR FR FL BL BR \n\ | ||
| 460 | EP: FR UL FL UR UF DB DR BL UB BR DL DF \n\ | ||
| 461 | EO(F/B): x x x x x x x x \n\ | ||
| 462 | \n\ | ||
| 463 | UFR UFL UBL UBR DFR DFL DBL DBR \n\ | ||
| 464 | CP: UBR UFR DFL DBL UFL UBL DBR DFR \n\ | ||
| 465 | CO(U/D): ccw cw ccw cw\n\ | ||
| 466 | \n\ | ||
| 467 | " | ||
| 468 | }, | ||
| 469 | |||
| 470 | { "print", | ||
| 471 | "\ | ||
| 472 | \n\ | ||
| 473 | HELP PAGE FOR COMMAND print\n\ | ||
| 474 | \n\ | ||
| 475 | SYNTAX\n\ | ||
| 476 | print [$ID|@ID]\n\ | ||
| 477 | \n\ | ||
| 478 | DESCRIPTION\n\ | ||
| 479 | Prints memorized sequences. If no argument is given, it prints all memorized\n\ | ||
| 480 | scrambles ($ only). If $ID or @ID is specified, it only prints the relative\n\ | ||
| 481 | memorized sequence.\n\ | ||
| 482 | \n\ | ||
| 483 | EXAMPLES\n\ | ||
| 484 | print\n\ | ||
| 485 | Prints a list of all memorized scrambles (only $).\n\ | ||
| 486 | print $2\n\ | ||
| 487 | Prints the second memorized scramble.\n\ | ||
| 488 | print @13\n\ | ||
| 489 | Prints the 13th sequence that was part of the output of the last command.\n\ | ||
| 490 | \n\ | ||
| 491 | " | ||
| 492 | }, | ||
| 493 | |||
| 494 | { "quit", | ||
| 495 | "\ | ||
| 496 | \n\ | ||
| 497 | HELP PAGE FOR COMMAND quit\n\ | ||
| 498 | \n\ | ||
| 499 | SYNTAX\n\ | ||
| 500 | quit\n\ | ||
| 501 | \n\ | ||
| 502 | DESCRIPTION\n\ | ||
| 503 | Exits nissy.\n\ | ||
| 504 | \n\ | ||
| 505 | " | ||
| 506 | }, | ||
| 507 | |||
| 508 | { "replace", | ||
| 509 | "\ | ||
| 510 | \n\ | ||
| 511 | HELP PAGE FOR COMMAND replace\n\ | ||
| 512 | \n\ | ||
| 513 | SYNTAX\n\ | ||
| 514 | eo [OPTIONS] [MOVES|$ID|@ID]\n\ | ||
| 515 | \n\ | ||
| 516 | DESCRIPTION\n\ | ||
| 517 | Looks for non-optimal subsequences and replaces them to shorten the given\n\ | ||
| 518 | sequence. By default it tries to shorten every subsequence of up to 10 moves,\n\ | ||
| 519 | but this can be change with the \"b\" option.\n\ | ||
| 520 | It outputs at most 10 equivalent optimal sequences for each replaceable part.\n\ | ||
| 521 | \n\ | ||
| 522 | OPTIONS\n\ | ||
| 523 | b=N Finds non-optimal subsequences of up to N moves.\n\ | ||
| 524 | \n\ | ||
| 525 | EXAMPLES\n\ | ||
| 526 | replace D2 F' D2 U2 F' L2 R2 U' D B2 D B2 U B2 F L2 R' F' D U' \n\ | ||
| 527 | Produces the following output:\n\ | ||
| 528 | Replace [ R2 U' D B2 D B2 ] (moves 7-12) with: [ D R2 D U' ] (-6+4)\n\ | ||
| 529 | Replace [ R2 U' D B2 D B2 U ] (moves 7-13) with: [ D R2 D ] (-7+3)\n\ | ||
| 530 | Replace [ U' D B2 D B2 U ] (moves 8-13) with: [ R2 D R2 D ] (-6+4)\n\ | ||
| 531 | \n\ | ||
| 532 | " | ||
| 533 | }, | ||
| 534 | |||
| 535 | { "save", | ||
| 536 | "\ | ||
| 537 | \n\ | ||
| 538 | HELP PAGE FOR COMMAND save\n\ | ||
| 539 | \n\ | ||
| 540 | SYNTAX\n\ | ||
| 541 | save [MOVES|@ID|$ID]\n\ | ||
| 542 | \n\ | ||
| 543 | DESCRIPTION\n\ | ||
| 544 | Memorizes the scramble specified by MOVES, given as input or temporarily saved\n\ | ||
| 545 | as @ID, where ID is a number ('help nissy' for for more on IDs). If an $ID is\n\ | ||
| 546 | given, it makes a copy of the scramble. An identifier of the form $ID, where ID\n\ | ||
| 547 | is a number, is assigned to the memorized scramble.\n\ | ||
| 548 | \n\ | ||
| 549 | EXAMPLES\n\ | ||
| 550 | save R U R' U'\n\ | ||
| 551 | Saves the scramble R U R' U'.\n\ | ||
| 552 | save F (B)\n\ | ||
| 553 | Saves the scramble F (B) (NISS notation).\n\ | ||
| 554 | save @3\n\ | ||
| 555 | Saves the third output sequence of the last command.\n\ | ||
| 556 | save $2\n\ | ||
| 557 | Makes a copy of the second saved scramble.\n\ | ||
| 558 | \n\ | ||
| 559 | " | ||
| 560 | }, | ||
| 561 | |||
| 562 | { "scramble", | ||
| 563 | "\ | ||
| 564 | \n\ | ||
| 565 | HELP PAGE FOR COMMAND scramble\n\ | ||
| 566 | \n\ | ||
| 567 | SYNTAX\n\ | ||
| 568 | scramble [OPTIONS]\n\ | ||
| 569 | \n\ | ||
| 570 | DESCRIPTION\n\ | ||
| 571 | Produces a random-state scramble. There are options to get a corners-only,\n\ | ||
| 572 | edges-only or dr-state scramble.\n\ | ||
| 573 | \n\ | ||
| 574 | OPTIONS\n\ | ||
| 575 | c Scrambles corners only (edges are solved).\n\ | ||
| 576 | e Scrambles edges only (corners are solved).\n\ | ||
| 577 | dr DR-state scramble. The DR is always on the U/D axis.\n\ | ||
| 578 | \n\ | ||
| 579 | \n\ | ||
| 580 | EXAMPLES\n\ | ||
| 581 | scramble\n\ | ||
| 582 | Gives a random-state scramble\n\ | ||
| 583 | scramble dr\n\ | ||
| 584 | Gives a random-DR-state scramble\n\ | ||
| 585 | \n\ | ||
| 586 | " | ||
| 587 | }, | ||
| 588 | |||
| 589 | { "solve", | ||
| 590 | "\ | ||
| 591 | \n\ | ||
| 592 | HELP PAGE FOR COMMAND solve\n\ | ||
| 593 | \n\ | ||
| 594 | SYNTAX\n\ | ||
| 595 | solve [MOVES|$ID|@ID]\n\ | ||
| 596 | \n\ | ||
| 597 | DESCRIPTION\n\ | ||
| 598 | Solves the given scramble, which can be given as a sequence of moves or as $ID\n\ | ||
| 599 | or @ID. If none is given, the user can type it on the next line.\n\ | ||
| 600 | The algorithm first tries to find a short (<=10 moves) solution, and then\n\ | ||
| 601 | switches to a 2-step algorithm (unless the option \"o\" is specified, in which\n\ | ||
| 602 | case it keeps looking for an optimal solution).\n\ | ||
| 603 | The first time it uses the 2-step algorithm it needs to load some tables, which\n\ | ||
| 604 | can take a few seconds. It runs much faster after that. If the option \"o\" is\n\ | ||
| 605 | specified, the first time it loads some large tables, which can take a minute\n\ | ||
| 606 | or two.\n\ | ||
| 607 | \n\ | ||
| 608 | OPTIONS\n\ | ||
| 609 | b=N Only looks for solutions up to N moves.\n\ | ||
| 610 | n=N Tries to find multiple solutions, at most N. Multiple\n\ | ||
| 611 | Solutions will only be found if they are <=10 moves.\n\ | ||
| 612 | o Looks for optimal solution.\n\ | ||
| 613 | \n\ | ||
| 614 | \n\ | ||
| 615 | EXAMPLES\n\ | ||
| 616 | solve R' U' F\n\ | ||
| 617 | Solves the scramble R' U' F.\n\ | ||
| 618 | solve o b=14 $1\n\ | ||
| 619 | Tries to solve the scramble $1 optimally, but stops if no solution of 14\n\ | ||
| 620 | moves or shorter is found.\n\ | ||
| 621 | solve n=16 R L' U2 R' L F2\n\ | ||
| 622 | Finds the 16 shortest solutions for the scramble above.\n\ | ||
| 623 | \n\ | ||
| 624 | " | ||
| 625 | }, | ||
| 626 | |||
| 627 | { "unniss", | ||
| 628 | "\ | ||
| 629 | \n\ | ||
| 630 | HELP PAGE FOR COMMAND unniss\n\ | ||
| 631 | \n\ | ||
| 632 | SYNTAX\n\ | ||
| 633 | unniss [MOVES|$ID|@ID]\n\ | ||
| 634 | \n\ | ||
| 635 | DESCRIPTION\n\ | ||
| 636 | Removes NISS from a sequence of moves, which can be given also as $ID or @ID.\n\ | ||
| 637 | A sequence of the form A (B) is translated to B' A.\n\ | ||
| 638 | \n\ | ||
| 639 | EXAMPLES\n\ | ||
| 640 | invert F R (D' L2)\n\ | ||
| 641 | Prints L2 D F R\n\ | ||
| 642 | \n\ | ||
| 643 | " | ||
| 644 | }, | ||
| 645 | }; | ||
