Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / chess / src / main / assets / learn.json
learn.json1572 lines · 40.7 KiBRaw
| 1 | { |
| 2 | "categories": [ |
| 3 | { |
| 4 | "key": "chessPieces", |
| 5 | "name": "Chess pieces", |
| 6 | "stages": [ |
| 7 | { |
| 8 | "id": 1, |
| 9 | "key": "rook", |
| 10 | "title": "The rook", |
| 11 | "subtitle": "It moves in straight lines", |
| 12 | "intro": "The rook is a powerful piece. Are you ready to command it?", |
| 13 | "complete": "Congratulations! You have successfully mastered the rook.", |
| 14 | "levels": [ |
| 15 | { |
| 16 | "goal": "Click on the rook\nto bring it to the star!", |
| 17 | "fen": "8/8/8/8/8/8/4R3/8 w - - 0 1", |
| 18 | "color": "white", |
| 19 | "goalType": "apples", |
| 20 | "nbMoves": 1, |
| 21 | "apples": "e7", |
| 22 | "shapes": [ |
| 23 | { |
| 24 | "orig": "e2", |
| 25 | "dest": "e7", |
| 26 | "brush": "green" |
| 27 | } |
| 28 | ] |
| 29 | }, |
| 30 | { |
| 31 | "goal": "Grab all the stars!", |
| 32 | "fen": "8/2R5/8/8/8/8/8/8 w - - 0 1", |
| 33 | "color": "white", |
| 34 | "goalType": "apples", |
| 35 | "nbMoves": 2, |
| 36 | "apples": "c5 g5", |
| 37 | "shapes": [ |
| 38 | { |
| 39 | "orig": "c7", |
| 40 | "dest": "c5", |
| 41 | "brush": "green" |
| 42 | }, |
| 43 | { |
| 44 | "orig": "c5", |
| 45 | "dest": "g5", |
| 46 | "brush": "green" |
| 47 | } |
| 48 | ] |
| 49 | }, |
| 50 | { |
| 51 | "goal": "The fewer moves you make,\nthe more points you win!", |
| 52 | "fen": "8/8/8/8/3R4/8/8/8 w - - 0 1", |
| 53 | "color": "white", |
| 54 | "goalType": "apples", |
| 55 | "nbMoves": 3, |
| 56 | "apples": "a4 g3 g4" |
| 57 | }, |
| 58 | { |
| 59 | "goal": "The fewer moves you make,\nthe more points you win!", |
| 60 | "fen": "7R/8/8/8/8/8/8/8 w - - 0 1", |
| 61 | "color": "white", |
| 62 | "goalType": "apples", |
| 63 | "nbMoves": 5, |
| 64 | "apples": "f8 g1 g7 g8 h7" |
| 65 | }, |
| 66 | { |
| 67 | "goal": "Use two rooks\nto speed things up!", |
| 68 | "fen": "8/1R6/8/8/3R4/8/8/8 w - - 0 1", |
| 69 | "color": "white", |
| 70 | "goalType": "apples", |
| 71 | "nbMoves": 4, |
| 72 | "apples": "a4 g3 g7 h4" |
| 73 | }, |
| 74 | { |
| 75 | "goal": "Use two rooks\nto speed things up!", |
| 76 | "fen": "8/8/8/8/8/5R2/8/R7 w - - 0 1", |
| 77 | "color": "white", |
| 78 | "goalType": "apples", |
| 79 | "nbMoves": 7, |
| 80 | "apples": "b7 d1 d5 f2 f7 g4 g7" |
| 81 | } |
| 82 | ] |
| 83 | }, |
| 84 | { |
| 85 | "id": 2, |
| 86 | "key": "bishop", |
| 87 | "title": "The bishop", |
| 88 | "subtitle": "It moves diagonally", |
| 89 | "intro": "Next we will learn how to manoeuvre a bishop!", |
| 90 | "complete": "Congratulations! You can command a bishop.", |
| 91 | "levels": [ |
| 92 | { |
| 93 | "goal": "Grab all the stars!", |
| 94 | "fen": "8/8/8/8/8/5B2/8/8 w - - 0 1", |
| 95 | "color": "white", |
| 96 | "goalType": "apples", |
| 97 | "nbMoves": 2, |
| 98 | "apples": "d5 g8", |
| 99 | "shapes": [ |
| 100 | { |
| 101 | "orig": "f3", |
| 102 | "dest": "d5", |
| 103 | "brush": "green" |
| 104 | }, |
| 105 | { |
| 106 | "orig": "d5", |
| 107 | "dest": "g8", |
| 108 | "brush": "green" |
| 109 | } |
| 110 | ] |
| 111 | }, |
| 112 | { |
| 113 | "goal": "The fewer moves you make,\nthe more points you win!", |
| 114 | "fen": "8/8/8/8/8/1B6/8/8 w - - 0 1", |
| 115 | "color": "white", |
| 116 | "goalType": "apples", |
| 117 | "nbMoves": 6, |
| 118 | "apples": "a2 b1 b5 d1 d3 e2" |
| 119 | }, |
| 120 | { |
| 121 | "goal": "Grab all the stars!", |
| 122 | "fen": "8/8/8/8/3B4/8/8/8 w - - 0 1", |
| 123 | "color": "white", |
| 124 | "goalType": "apples", |
| 125 | "nbMoves": 6, |
| 126 | "apples": "a1 b6 c1 e3 g7 h6" |
| 127 | }, |
| 128 | { |
| 129 | "goal": "Grab all the stars!", |
| 130 | "fen": "8/8/8/8/2B5/8/8/8 w - - 0 1", |
| 131 | "color": "white", |
| 132 | "goalType": "apples", |
| 133 | "nbMoves": 6, |
| 134 | "apples": "a4 b1 b3 c2 d3 e2" |
| 135 | }, |
| 136 | { |
| 137 | "goal": "One light-squared bishop,\none dark-squared bishop.\nYou need both!", |
| 138 | "fen": "8/8/8/8/8/8/8/2B2B2 w - - 0 1", |
| 139 | "color": "white", |
| 140 | "goalType": "apples", |
| 141 | "nbMoves": 6, |
| 142 | "apples": "d3 d4 d5 e3 e4 e5" |
| 143 | }, |
| 144 | { |
| 145 | "goal": "One light-squared bishop,\none dark-squared bishop.\nYou need both!", |
| 146 | "fen": "8/3B4/8/8/8/2B5/8/8 w - - 0 1", |
| 147 | "color": "white", |
| 148 | "goalType": "apples", |
| 149 | "nbMoves": 11, |
| 150 | "apples": "a3 c2 e7 f5 f6 g8 h4 h7" |
| 151 | } |
| 152 | ] |
| 153 | }, |
| 154 | { |
| 155 | "id": 3, |
| 156 | "key": "queen", |
| 157 | "title": "The queen", |
| 158 | "subtitle": "Queen = rook + bishop", |
| 159 | "intro": "The most powerful chess piece enters. Her majesty the queen!", |
| 160 | "complete": "Congratulations! Queens have no secrets for you.", |
| 161 | "levels": [ |
| 162 | { |
| 163 | "goal": "Grab all the stars!", |
| 164 | "fen": "8/8/8/8/8/8/4Q3/8 w - - 0 1", |
| 165 | "color": "white", |
| 166 | "goalType": "apples", |
| 167 | "nbMoves": 2, |
| 168 | "apples": "e5 b8", |
| 169 | "shapes": [ |
| 170 | { |
| 171 | "orig": "e2", |
| 172 | "dest": "e5", |
| 173 | "brush": "green" |
| 174 | }, |
| 175 | { |
| 176 | "orig": "e5", |
| 177 | "dest": "b8", |
| 178 | "brush": "green" |
| 179 | } |
| 180 | ] |
| 181 | }, |
| 182 | { |
| 183 | "goal": "Grab all the stars!", |
| 184 | "fen": "8/8/8/8/3Q4/8/8/8 w - - 0 1", |
| 185 | "color": "white", |
| 186 | "goalType": "apples", |
| 187 | "nbMoves": 4, |
| 188 | "apples": "a3 f2 f8 h3" |
| 189 | }, |
| 190 | { |
| 191 | "goal": "Grab all the stars!", |
| 192 | "fen": "8/8/8/8/2Q5/8/8/8 w - - 0 1", |
| 193 | "color": "white", |
| 194 | "goalType": "apples", |
| 195 | "nbMoves": 6, |
| 196 | "apples": "a3 d6 f1 f8 g3 h6" |
| 197 | }, |
| 198 | { |
| 199 | "goal": "Grab all the stars!", |
| 200 | "fen": "8/6Q1/8/8/8/8/8/8 w - - 0 1", |
| 201 | "color": "white", |
| 202 | "goalType": "apples", |
| 203 | "nbMoves": 7, |
| 204 | "apples": "a2 b5 d3 g1 g8 h2 h5" |
| 205 | }, |
| 206 | { |
| 207 | "goal": "Grab all the stars!", |
| 208 | "fen": "8/8/8/8/8/8/8/4Q3 w - - 0 1", |
| 209 | "color": "white", |
| 210 | "goalType": "apples", |
| 211 | "nbMoves": 9, |
| 212 | "apples": "a6 d1 f2 f6 g6 g8 h1 h4" |
| 213 | } |
| 214 | ] |
| 215 | }, |
| 216 | { |
| 217 | "id": 4, |
| 218 | "key": "king", |
| 219 | "title": "The king", |
| 220 | "subtitle": "The most important piece", |
| 221 | "intro": "You are the king. If you fall in battle, the game is lost.", |
| 222 | "complete": "You can now command the commander!", |
| 223 | "levels": [ |
| 224 | { |
| 225 | "goal": "The king is slow.", |
| 226 | "fen": "8/8/8/8/8/3K4/8/8 w - - 0 1", |
| 227 | "color": "white", |
| 228 | "goalType": "apples", |
| 229 | "nbMoves": 3, |
| 230 | "apples": "e6", |
| 231 | "emptyApples": true, |
| 232 | "shapes": [ |
| 233 | { |
| 234 | "orig": "d3", |
| 235 | "dest": "d4", |
| 236 | "brush": "green" |
| 237 | }, |
| 238 | { |
| 239 | "orig": "d4", |
| 240 | "dest": "d5", |
| 241 | "brush": "green" |
| 242 | }, |
| 243 | { |
| 244 | "orig": "d5", |
| 245 | "dest": "e6", |
| 246 | "brush": "green" |
| 247 | } |
| 248 | ] |
| 249 | }, |
| 250 | { |
| 251 | "goal": "Grab all the stars!", |
| 252 | "fen": "8/8/8/8/8/8/8/4K3 w - - 0 1", |
| 253 | "color": "white", |
| 254 | "goalType": "apples", |
| 255 | "nbMoves": 4, |
| 256 | "apples": "c2 d3 e2 e3", |
| 257 | "emptyApples": true |
| 258 | }, |
| 259 | { |
| 260 | "goal": "Last one!", |
| 261 | "fen": "8/8/8/4K3/8/8/8/8 w - - 0 1", |
| 262 | "color": "white", |
| 263 | "goalType": "apples", |
| 264 | "nbMoves": 8, |
| 265 | "apples": "b5 c5 d6 e3 f3 g4", |
| 266 | "emptyApples": true |
| 267 | } |
| 268 | ] |
| 269 | }, |
| 270 | { |
| 271 | "id": 5, |
| 272 | "key": "knight", |
| 273 | "title": "The knight", |
| 274 | "subtitle": "It moves in an L shape", |
| 275 | "intro": "Here's a challenge for you. The knight is... a tricky piece.", |
| 276 | "complete": "Congratulations! You have mastered the knight.", |
| 277 | "levels": [ |
| 278 | { |
| 279 | "goal": "Knights have a fancy way\nof jumping around!", |
| 280 | "fen": "8/8/8/8/4N3/8/8/8 w - - 0 1", |
| 281 | "color": "white", |
| 282 | "goalType": "apples", |
| 283 | "nbMoves": 2, |
| 284 | "apples": "c5 d7", |
| 285 | "shapes": [ |
| 286 | { |
| 287 | "orig": "e4", |
| 288 | "dest": "c5", |
| 289 | "brush": "green" |
| 290 | }, |
| 291 | { |
| 292 | "orig": "c5", |
| 293 | "dest": "d7", |
| 294 | "brush": "green" |
| 295 | } |
| 296 | ] |
| 297 | }, |
| 298 | { |
| 299 | "goal": "Grab all the stars!", |
| 300 | "fen": "8/8/8/8/8/8/8/1N6 w - - 0 1", |
| 301 | "color": "white", |
| 302 | "goalType": "apples", |
| 303 | "nbMoves": 8, |
| 304 | "apples": "c3 d4 e2 f3 f7 g5 h8" |
| 305 | }, |
| 306 | { |
| 307 | "goal": "Grab all the stars!", |
| 308 | "fen": "8/2N5/8/8/8/8/8/8 w - - 0 1", |
| 309 | "color": "white", |
| 310 | "goalType": "apples", |
| 311 | "nbMoves": 5, |
| 312 | "apples": "b6 d5 d7 e6 f4" |
| 313 | }, |
| 314 | { |
| 315 | "goal": "Knights can jump over obstacles!\nEscape and vanquish the stars!", |
| 316 | "fen": "8/8/8/8/5N2/8/8/8 w - - 0 1", |
| 317 | "color": "white", |
| 318 | "goalType": "apples", |
| 319 | "nbMoves": 9, |
| 320 | "apples": "e3 e4 e5 f3 f5 g3 g4 g5" |
| 321 | }, |
| 322 | { |
| 323 | "goal": "Grab all the stars!", |
| 324 | "fen": "8/8/8/8/8/3N4/8/8 w - - 0 1", |
| 325 | "color": "white", |
| 326 | "goalType": "apples", |
| 327 | "nbMoves": 6, |
| 328 | "apples": "c3 e2 e4 f2 f4 g6" |
| 329 | }, |
| 330 | { |
| 331 | "goal": "Grab all the stars!", |
| 332 | "fen": "8/2N5/8/8/8/8/8/8 w - - 0 1", |
| 333 | "color": "white", |
| 334 | "goalType": "apples", |
| 335 | "nbMoves": 9, |
| 336 | "apples": "b4 b5 c6 c8 d4 d5 e3 e7 f5" |
| 337 | } |
| 338 | ] |
| 339 | }, |
| 340 | { |
| 341 | "id": 6, |
| 342 | "key": "pawn", |
| 343 | "title": "The pawn", |
| 344 | "subtitle": "It moves forward only", |
| 345 | "intro": "Pawns are weak, but they pack a lot of potential.", |
| 346 | "complete": "Congratulations! Pawns have no secrets for you.", |
| 347 | "levels": [ |
| 348 | { |
| 349 | "goal": "Pawns move one square only.\nBut when they reach the other side of the board, they become a stronger piece!", |
| 350 | "fen": "8/8/8/P7/8/8/8/8 w - - 0 1", |
| 351 | "color": "white", |
| 352 | "goalType": "apples", |
| 353 | "nbMoves": 4, |
| 354 | "apples": "f3", |
| 355 | "explainPromotion": true, |
| 356 | "shapes": [ |
| 357 | { |
| 358 | "orig": "a5", |
| 359 | "dest": "a6", |
| 360 | "brush": "green" |
| 361 | }, |
| 362 | { |
| 363 | "orig": "a6", |
| 364 | "dest": "a7", |
| 365 | "brush": "green" |
| 366 | }, |
| 367 | { |
| 368 | "orig": "a7", |
| 369 | "dest": "a8", |
| 370 | "brush": "green" |
| 371 | }, |
| 372 | { |
| 373 | "orig": "a8", |
| 374 | "dest": "f3", |
| 375 | "brush": "green" |
| 376 | } |
| 377 | ] |
| 378 | }, |
| 379 | { |
| 380 | "goal": "Most of the time promoting to a queen is the best.\nBut sometimes a knight can come in handy!", |
| 381 | "fen": "8/8/8/5P2/8/8/8/8 w - - 0 1", |
| 382 | "color": "white", |
| 383 | "goalType": "apples", |
| 384 | "nbMoves": 8, |
| 385 | "apples": "b6 c4 d7 e5 a8" |
| 386 | }, |
| 387 | { |
| 388 | "goal": "Pawns move forward,\nbut capture diagonally!", |
| 389 | "fen": "8/8/8/8/8/4P3/8/8 w - - 0 1", |
| 390 | "color": "white", |
| 391 | "goalType": "apples", |
| 392 | "nbMoves": 4, |
| 393 | "apples": "c6 d5 d7", |
| 394 | "shapes": [ |
| 395 | { |
| 396 | "orig": "e3", |
| 397 | "dest": "e4", |
| 398 | "brush": "green" |
| 399 | }, |
| 400 | { |
| 401 | "orig": "e4", |
| 402 | "dest": "d5", |
| 403 | "brush": "green" |
| 404 | }, |
| 405 | { |
| 406 | "orig": "d5", |
| 407 | "dest": "c6", |
| 408 | "brush": "green" |
| 409 | }, |
| 410 | { |
| 411 | "orig": "c6", |
| 412 | "dest": "d7", |
| 413 | "brush": "green" |
| 414 | } |
| 415 | ], |
| 416 | "failIfPieceOffPath": [ |
| 417 | "e3", |
| 418 | "e4", |
| 419 | "c6", |
| 420 | "d5", |
| 421 | "d7" |
| 422 | ] |
| 423 | }, |
| 424 | { |
| 425 | "goal": "Capture, then promote!", |
| 426 | "fen": "8/8/8/8/8/1P6/8/8 w - - 0 1", |
| 427 | "color": "white", |
| 428 | "goalType": "apples", |
| 429 | "nbMoves": 8, |
| 430 | "apples": "b4 b6 c4 c6 c7 d6" |
| 431 | }, |
| 432 | { |
| 433 | "goal": "Capture, then promote!", |
| 434 | "fen": "8/8/8/8/8/3P4/8/8 w - - 0 1", |
| 435 | "color": "white", |
| 436 | "goalType": "apples", |
| 437 | "nbMoves": 8, |
| 438 | "apples": "c4 b5 b6 d5 d7 e6 c8", |
| 439 | "failIfWhitePawnOn": [ |
| 440 | "b5", |
| 441 | "d4", |
| 442 | "d6", |
| 443 | "c7" |
| 444 | ] |
| 445 | }, |
| 446 | { |
| 447 | "goal": "Use all the pawns!\nNo need to promote.", |
| 448 | "fen": "8/8/8/8/8/P1PP3P/8/8 w - - 0 1", |
| 449 | "color": "white", |
| 450 | "goalType": "apples", |
| 451 | "nbMoves": 7, |
| 452 | "apples": "b5 c5 d4 e5 g4" |
| 453 | }, |
| 454 | { |
| 455 | "goal": "A pawn on the second rank can move 2 squares at once!", |
| 456 | "fen": "8/8/8/8/8/8/4P3/8 w - - 0 1", |
| 457 | "color": "white", |
| 458 | "goalType": "apples", |
| 459 | "nbMoves": 3, |
| 460 | "apples": "d6", |
| 461 | "shapes": [ |
| 462 | { |
| 463 | "orig": "e2", |
| 464 | "dest": "e4", |
| 465 | "brush": "green" |
| 466 | } |
| 467 | ], |
| 468 | "failIfWhitePawnOn": [ |
| 469 | "e3" |
| 470 | ] |
| 471 | }, |
| 472 | { |
| 473 | "goal": "Grab all the stars!\nNo need to promote.", |
| 474 | "fen": "8/8/8/8/8/8/2PPPP2/8 w - - 0 1", |
| 475 | "color": "white", |
| 476 | "goalType": "apples", |
| 477 | "nbMoves": 9, |
| 478 | "apples": "c5 d5 e5 f5 d3 e4" |
| 479 | } |
| 480 | ] |
| 481 | } |
| 482 | ] |
| 483 | }, |
| 484 | { |
| 485 | "key": "fundamentals", |
| 486 | "name": "Fundamentals", |
| 487 | "stages": [ |
| 488 | { |
| 489 | "id": 7, |
| 490 | "key": "capture", |
| 491 | "title": "Capture", |
| 492 | "subtitle": "Take the enemy pieces", |
| 493 | "intro": "Identify the opponent's undefended pieces, and capture them!", |
| 494 | "complete": "Congratulations! You know how to fight with chess pieces!", |
| 495 | "levels": [ |
| 496 | { |
| 497 | "goal": "Take the black pieces!", |
| 498 | "fen": "8/2p2p2/8/8/8/2R5/8/8 w - - 0 1", |
| 499 | "color": "white", |
| 500 | "goalType": "captureAll", |
| 501 | "nbMoves": 2, |
| 502 | "captures": 2, |
| 503 | "detectCapture": "unprotected", |
| 504 | "pointsForCapture": true, |
| 505 | "captureColor": "black", |
| 506 | "shapes": [ |
| 507 | { |
| 508 | "orig": "c3", |
| 509 | "dest": "c7", |
| 510 | "brush": "green" |
| 511 | }, |
| 512 | { |
| 513 | "orig": "c7", |
| 514 | "dest": "f7", |
| 515 | "brush": "green" |
| 516 | } |
| 517 | ] |
| 518 | }, |
| 519 | { |
| 520 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 521 | "fen": "8/2r2p2/8/8/5Q2/8/8/8 w - - 0 1", |
| 522 | "color": "white", |
| 523 | "goalType": "captureAll", |
| 524 | "nbMoves": 2, |
| 525 | "captures": 2, |
| 526 | "detectCapture": "unprotected", |
| 527 | "pointsForCapture": true, |
| 528 | "captureColor": "black", |
| 529 | "shapes": [ |
| 530 | { |
| 531 | "orig": "f4", |
| 532 | "dest": "c7", |
| 533 | "brush": "green" |
| 534 | }, |
| 535 | { |
| 536 | "orig": "f4", |
| 537 | "dest": "f7", |
| 538 | "brush": "red" |
| 539 | }, |
| 540 | { |
| 541 | "orig": "c7", |
| 542 | "dest": "f7", |
| 543 | "brush": "yellow" |
| 544 | } |
| 545 | ] |
| 546 | }, |
| 547 | { |
| 548 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 549 | "fen": "8/5r2/8/1r3p2/8/3B4/8/8 w - - 0 1", |
| 550 | "color": "white", |
| 551 | "goalType": "captureAll", |
| 552 | "nbMoves": 5, |
| 553 | "captures": 3, |
| 554 | "detectCapture": "unprotected", |
| 555 | "pointsForCapture": true, |
| 556 | "captureColor": "black" |
| 557 | }, |
| 558 | { |
| 559 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 560 | "fen": "8/5b2/5p2/3n2p1/8/6Q1/8/8 w - - 0 1", |
| 561 | "color": "white", |
| 562 | "goalType": "captureAll", |
| 563 | "nbMoves": 7, |
| 564 | "captures": 4, |
| 565 | "detectCapture": "unprotected", |
| 566 | "pointsForCapture": true, |
| 567 | "captureColor": "black" |
| 568 | }, |
| 569 | { |
| 570 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 571 | "fen": "8/3b4/2p2q2/8/3p1N2/8/8/8 w - - 0 1", |
| 572 | "color": "white", |
| 573 | "goalType": "captureAll", |
| 574 | "nbMoves": 6, |
| 575 | "captures": 4, |
| 576 | "detectCapture": "unprotected", |
| 577 | "pointsForCapture": true, |
| 578 | "captureColor": "black" |
| 579 | } |
| 580 | ] |
| 581 | }, |
| 582 | { |
| 583 | "id": 8, |
| 584 | "key": "protection", |
| 585 | "title": "Protection", |
| 586 | "subtitle": "Keep your pieces safe", |
| 587 | "intro": "Identify the pieces your opponent attacks, and defend them!", |
| 588 | "complete": "Congratulations! A piece you don't lose is a piece you win!", |
| 589 | "levels": [ |
| 590 | { |
| 591 | "goal": "You're under attack!\nEscape the threat!", |
| 592 | "fen": "8/8/8/4bb2/8/8/P2P4/R2K4 w - - 0 1", |
| 593 | "color": "white", |
| 594 | "goalType": "protection", |
| 595 | "nbMoves": 1, |
| 596 | "detectCapture": "unprotected", |
| 597 | "shapes": [ |
| 598 | { |
| 599 | "orig": "e5", |
| 600 | "dest": "a1", |
| 601 | "brush": "red" |
| 602 | }, |
| 603 | { |
| 604 | "orig": "a1", |
| 605 | "dest": "c1", |
| 606 | "brush": "green" |
| 607 | } |
| 608 | ] |
| 609 | }, |
| 610 | { |
| 611 | "goal": "You're under attack!\nEscape the threat!", |
| 612 | "fen": "8/8/2q2N2/8/8/8/8/8 w - - 0 1", |
| 613 | "color": "white", |
| 614 | "goalType": "protection", |
| 615 | "nbMoves": 1, |
| 616 | "detectCapture": "unprotected" |
| 617 | }, |
| 618 | { |
| 619 | "goal": "There is no escape,\nbut you can defend!", |
| 620 | "fen": "8/N2q4/8/8/8/8/6R1/8 w - - 0 1", |
| 621 | "color": "white", |
| 622 | "goalType": "protection", |
| 623 | "nbMoves": 1, |
| 624 | "detectCapture": "unprotected", |
| 625 | "scenario": [ |
| 626 | "g2a2" |
| 627 | ] |
| 628 | }, |
| 629 | { |
| 630 | "goal": "There is no escape,\nbut you can defend!", |
| 631 | "fen": "8/8/1Bq5/8/2P5/8/8/8 w - - 0 1", |
| 632 | "color": "white", |
| 633 | "goalType": "protection", |
| 634 | "nbMoves": 1, |
| 635 | "detectCapture": "unprotected" |
| 636 | }, |
| 637 | { |
| 638 | "goal": "There is no escape,\nbut you can defend!", |
| 639 | "fen": "1r6/8/5b2/8/8/5N2/P2P4/R1B5 w - - 0 1", |
| 640 | "color": "white", |
| 641 | "goalType": "protection", |
| 642 | "nbMoves": 1, |
| 643 | "detectCapture": "unprotected", |
| 644 | "shapes": [ |
| 645 | { |
| 646 | "orig": "f6", |
| 647 | "dest": "a1", |
| 648 | "brush": "red" |
| 649 | }, |
| 650 | { |
| 651 | "orig": "d2", |
| 652 | "dest": "d4", |
| 653 | "brush": "green" |
| 654 | } |
| 655 | ] |
| 656 | }, |
| 657 | { |
| 658 | "goal": "Don't let them take\nany undefended piece!", |
| 659 | "fen": "8/1b6/8/8/8/3P2P1/5NRP/r7 w - - 0 1", |
| 660 | "color": "white", |
| 661 | "goalType": "protection", |
| 662 | "nbMoves": 1, |
| 663 | "detectCapture": "unprotected" |
| 664 | }, |
| 665 | { |
| 666 | "goal": "Don't let them take\nany undefended piece!", |
| 667 | "fen": "rr6/3q4/4n3/4P1B1/7P/P7/1B1N1PP1/R5K1 w - - 0 1", |
| 668 | "color": "white", |
| 669 | "goalType": "protection", |
| 670 | "nbMoves": 1, |
| 671 | "detectCapture": "unprotected" |
| 672 | }, |
| 673 | { |
| 674 | "goal": "Don't let them take\nany undefended piece!", |
| 675 | "fen": "8/3q4/8/1N3R2/8/2PB4/8/8 w - - 0 1", |
| 676 | "color": "white", |
| 677 | "goalType": "protection", |
| 678 | "nbMoves": 1, |
| 679 | "detectCapture": "unprotected" |
| 680 | } |
| 681 | ] |
| 682 | }, |
| 683 | { |
| 684 | "id": 9, |
| 685 | "key": "combat", |
| 686 | "title": "Combat", |
| 687 | "subtitle": "Capture and defend pieces", |
| 688 | "intro": "A good warrior knows both attack and defence!", |
| 689 | "complete": "Congratulations! You know how to fight with chess pieces!", |
| 690 | "levels": [ |
| 691 | { |
| 692 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 693 | "fen": "8/8/8/8/P2r4/6B1/8/8 w - - 0 1", |
| 694 | "color": "white", |
| 695 | "goalType": "captureAll", |
| 696 | "nbMoves": 3, |
| 697 | "captures": 1, |
| 698 | "detectCapture": "unprotected", |
| 699 | "pointsForCapture": true, |
| 700 | "captureColor": "black", |
| 701 | "shapes": [ |
| 702 | { |
| 703 | "orig": "a4", |
| 704 | "dest": "a5", |
| 705 | "brush": "green" |
| 706 | }, |
| 707 | { |
| 708 | "orig": "g3", |
| 709 | "dest": "f2", |
| 710 | "brush": "green" |
| 711 | }, |
| 712 | { |
| 713 | "orig": "f2", |
| 714 | "dest": "d4", |
| 715 | "brush": "green" |
| 716 | }, |
| 717 | { |
| 718 | "orig": "d4", |
| 719 | "dest": "a4", |
| 720 | "brush": "yellow" |
| 721 | } |
| 722 | ] |
| 723 | }, |
| 724 | { |
| 725 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 726 | "fen": "2r5/8/3b4/2P5/8/1P6/2B5/8 w - - 0 1", |
| 727 | "color": "white", |
| 728 | "goalType": "captureAll", |
| 729 | "nbMoves": 4, |
| 730 | "captures": 2, |
| 731 | "detectCapture": "unprotected", |
| 732 | "pointsForCapture": true, |
| 733 | "captureColor": "black" |
| 734 | }, |
| 735 | { |
| 736 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 737 | "fen": "1r6/8/5n2/3P4/4P1P1/1Q6/8/8 w - - 0 1", |
| 738 | "color": "white", |
| 739 | "goalType": "captureAll", |
| 740 | "nbMoves": 4, |
| 741 | "captures": 2, |
| 742 | "detectCapture": "unprotected", |
| 743 | "pointsForCapture": true, |
| 744 | "captureColor": "black" |
| 745 | }, |
| 746 | { |
| 747 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 748 | "fen": "2r5/8/3N4/5b2/8/8/PPP5/8 w - - 0 1", |
| 749 | "color": "white", |
| 750 | "goalType": "captureAll", |
| 751 | "nbMoves": 4, |
| 752 | "captures": 2, |
| 753 | "detectCapture": "unprotected", |
| 754 | "pointsForCapture": true, |
| 755 | "captureColor": "black" |
| 756 | }, |
| 757 | { |
| 758 | "goal": "Take the black pieces!\nAnd don't lose yours.", |
| 759 | "fen": "8/6q1/8/4P1P1/8/4B3/r2P2N1/8 w - - 0 1", |
| 760 | "color": "white", |
| 761 | "goalType": "captureAll", |
| 762 | "nbMoves": 8, |
| 763 | "captures": 2, |
| 764 | "detectCapture": "unprotected", |
| 765 | "pointsForCapture": true, |
| 766 | "captureColor": "black" |
| 767 | } |
| 768 | ] |
| 769 | }, |
| 770 | { |
| 771 | "id": 10, |
| 772 | "key": "check1", |
| 773 | "title": "Check in one", |
| 774 | "subtitle": "Attack the opponent's king", |
| 775 | "intro": "To check your opponent, attack their king. They must defend it!", |
| 776 | "complete": "Congratulations! You checked your opponent, forcing them to defend their king!", |
| 777 | "levels": [ |
| 778 | { |
| 779 | "goal": "Aim at the opponent's king\nin one move!", |
| 780 | "fen": "4k3/8/2b5/8/8/8/8/R7 w - - 0 1", |
| 781 | "color": "white", |
| 782 | "goalType": "check", |
| 783 | "nbMoves": 1, |
| 784 | "detectCapture": "unprotected", |
| 785 | "shapes": [ |
| 786 | { |
| 787 | "orig": "a1", |
| 788 | "dest": "e1", |
| 789 | "brush": "green" |
| 790 | } |
| 791 | ] |
| 792 | }, |
| 793 | { |
| 794 | "goal": "Aim at the opponent's king\nin one move!", |
| 795 | "fen": "8/8/4k3/3n4/8/1Q6/8/8 w - - 0 1", |
| 796 | "color": "white", |
| 797 | "goalType": "check", |
| 798 | "nbMoves": 1, |
| 799 | "detectCapture": "unprotected" |
| 800 | }, |
| 801 | { |
| 802 | "goal": "Aim at the opponent's king\nin one move!", |
| 803 | "fen": "3qk3/1pp5/3p4/4p3/8/3B4/6r1/8 w - - 0 1", |
| 804 | "color": "white", |
| 805 | "goalType": "check", |
| 806 | "nbMoves": 1, |
| 807 | "detectCapture": "unprotected" |
| 808 | }, |
| 809 | { |
| 810 | "goal": "Aim at the opponent's king\nin one move!", |
| 811 | "fen": "2r2q2/2n5/8/4k3/8/2N1P3/3P2B1/8 w - - 0 1", |
| 812 | "color": "white", |
| 813 | "goalType": "check", |
| 814 | "nbMoves": 1, |
| 815 | "detectCapture": "unprotected" |
| 816 | }, |
| 817 | { |
| 818 | "goal": "Aim at the opponent's king\nin one move!", |
| 819 | "fen": "8/2b1q2n/1ppk4/2N5/8/8/8/8 w - - 0 1", |
| 820 | "color": "white", |
| 821 | "goalType": "check", |
| 822 | "nbMoves": 1, |
| 823 | "detectCapture": "unprotected" |
| 824 | }, |
| 825 | { |
| 826 | "goal": "Aim at the opponent's king\nin one move!", |
| 827 | "fen": "6R1/1k3r2/8/4Q3/8/2n5/8/8 w - - 0 1", |
| 828 | "color": "white", |
| 829 | "goalType": "check", |
| 830 | "nbMoves": 1, |
| 831 | "detectCapture": "unprotected" |
| 832 | }, |
| 833 | { |
| 834 | "goal": "Aim at the opponent's king\nin one move!", |
| 835 | "fen": "7r/4k3/8/3n4/4N3/8/2R5/4Q3 w - - 0 1", |
| 836 | "color": "white", |
| 837 | "goalType": "check", |
| 838 | "nbMoves": 1, |
| 839 | "detectCapture": "unprotected" |
| 840 | } |
| 841 | ] |
| 842 | }, |
| 843 | { |
| 844 | "id": 11, |
| 845 | "key": "outOfCheck", |
| 846 | "title": "Out of check", |
| 847 | "subtitle": "Defend your king", |
| 848 | "intro": "You are in check! You must escape or block the attack.", |
| 849 | "complete": "Congratulations! Your king must never be taken, so make sure you can defend against a check!", |
| 850 | "levels": [ |
| 851 | { |
| 852 | "goal": "Escape with the king!", |
| 853 | "fen": "8/8/8/4q3/8/8/8/4K3 w - - 0 1", |
| 854 | "color": "white", |
| 855 | "goalType": "escapeCheck", |
| 856 | "nbMoves": 1, |
| 857 | "offerIllegalMove": true, |
| 858 | "shapes": [ |
| 859 | { |
| 860 | "orig": "e5", |
| 861 | "dest": "e1", |
| 862 | "brush": "red" |
| 863 | }, |
| 864 | { |
| 865 | "orig": "e1", |
| 866 | "dest": "f1", |
| 867 | "brush": "green" |
| 868 | } |
| 869 | ] |
| 870 | }, |
| 871 | { |
| 872 | "goal": "Escape with the king!", |
| 873 | "fen": "8/2n5/5b2/8/2K5/8/2q5/8 w - - 0 1", |
| 874 | "color": "white", |
| 875 | "goalType": "escapeCheck", |
| 876 | "nbMoves": 1, |
| 877 | "offerIllegalMove": true |
| 878 | }, |
| 879 | { |
| 880 | "goal": "The king cannot escape,\nbut you can block the attack!", |
| 881 | "fen": "8/7r/6r1/8/R7/7K/8/8 w - - 0 1", |
| 882 | "color": "white", |
| 883 | "goalType": "escapeCheck", |
| 884 | "nbMoves": 1, |
| 885 | "offerIllegalMove": true |
| 886 | }, |
| 887 | { |
| 888 | "goal": "You can get out of check\nby taking the attacking piece.", |
| 889 | "fen": "8/8/8/3b4/8/4N3/KBn5/1R6 w - - 0 1", |
| 890 | "color": "white", |
| 891 | "goalType": "escapeCheck", |
| 892 | "nbMoves": 1, |
| 893 | "offerIllegalMove": true |
| 894 | }, |
| 895 | { |
| 896 | "goal": "This knight is checking\nthrough your defences!", |
| 897 | "fen": "4q3/8/8/8/8/5nb1/3PPP2/3QKBNr w - - 0 1", |
| 898 | "color": "white", |
| 899 | "goalType": "escapeCheck", |
| 900 | "nbMoves": 1, |
| 901 | "offerIllegalMove": true |
| 902 | }, |
| 903 | { |
| 904 | "goal": "Escape with the king\nor block the attack!", |
| 905 | "fen": "8/8/7p/2q5/5n2/1N1KP2r/3R4/8 w - - 0 1", |
| 906 | "color": "white", |
| 907 | "goalType": "escapeCheck", |
| 908 | "nbMoves": 1, |
| 909 | "offerIllegalMove": true |
| 910 | }, |
| 911 | { |
| 912 | "goal": "Escape with the king\nor block the attack!", |
| 913 | "fen": "8/6b1/8/8/q4P2/2KN4/3P4/8 w - - 0 1", |
| 914 | "color": "white", |
| 915 | "goalType": "escapeCheck", |
| 916 | "nbMoves": 1, |
| 917 | "offerIllegalMove": true |
| 918 | } |
| 919 | ] |
| 920 | }, |
| 921 | { |
| 922 | "id": 12, |
| 923 | "key": "checkmate1", |
| 924 | "title": "Mate in one", |
| 925 | "subtitle": "Defeat the opponent's king", |
| 926 | "intro": "You win when your opponent cannot defend against a check.", |
| 927 | "complete": "Congratulations! That is how you win chess games!", |
| 928 | "levels": [ |
| 929 | { |
| 930 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 931 | "fen": "3qk3/3ppp2/8/8/2B5/5Q2/8/8 w - - 0 1", |
| 932 | "color": "white", |
| 933 | "goalType": "mate", |
| 934 | "nbMoves": 1, |
| 935 | "detectCapture": "unprotected", |
| 936 | "shapes": [ |
| 937 | { |
| 938 | "orig": "f3", |
| 939 | "dest": "f7", |
| 940 | "brush": "green" |
| 941 | } |
| 942 | ] |
| 943 | }, |
| 944 | { |
| 945 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 946 | "fen": "6rk/6pp/7P/6N1/8/8/8/8 w - - 0 1", |
| 947 | "color": "white", |
| 948 | "goalType": "mate", |
| 949 | "nbMoves": 1, |
| 950 | "detectCapture": "unprotected" |
| 951 | }, |
| 952 | { |
| 953 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 954 | "fen": "R7/8/7k/2r5/5n2/8/6Q1/8 w - - 0 1", |
| 955 | "color": "white", |
| 956 | "goalType": "mate", |
| 957 | "nbMoves": 1, |
| 958 | "detectCapture": "unprotected" |
| 959 | }, |
| 960 | { |
| 961 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 962 | "fen": "2rb4/2k5/5N2/1Q6/8/8/8/8 w - - 0 1", |
| 963 | "color": "white", |
| 964 | "goalType": "mate", |
| 965 | "nbMoves": 1, |
| 966 | "detectCapture": "unprotected" |
| 967 | }, |
| 968 | { |
| 969 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 970 | "fen": "1r2kb2/ppB1p3/2P2p2/2p1N3/B7/8/8/3R4 w - - 0 1", |
| 971 | "color": "white", |
| 972 | "goalType": "mate", |
| 973 | "nbMoves": 1, |
| 974 | "detectCapture": "unprotected" |
| 975 | }, |
| 976 | { |
| 977 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 978 | "fen": "8/pk1N4/n7/b7/6B1/1r3b2/8/1RR5 w - - 0 1", |
| 979 | "color": "white", |
| 980 | "goalType": "mate", |
| 981 | "nbMoves": 1, |
| 982 | "detectCapture": "unprotected", |
| 983 | "scenario": [ |
| 984 | "g4f3" |
| 985 | ] |
| 986 | }, |
| 987 | { |
| 988 | "goal": "Attack your opponent's king\nin a way that cannot be defended!", |
| 989 | "fen": "r1b5/ppp5/2N2kpN/5q2/8/Q7/8/4B3 w - - 0 1", |
| 990 | "color": "white", |
| 991 | "goalType": "mate", |
| 992 | "nbMoves": 1, |
| 993 | "detectCapture": "unprotected" |
| 994 | } |
| 995 | ] |
| 996 | } |
| 997 | ] |
| 998 | }, |
| 999 | { |
| 1000 | "key": "intermediate", |
| 1001 | "name": "Intermediate", |
| 1002 | "stages": [ |
| 1003 | { |
| 1004 | "id": 13, |
| 1005 | "key": "setup", |
| 1006 | "title": "Board setup", |
| 1007 | "subtitle": "How the game starts", |
| 1008 | "intro": "The two armies face each other, ready for the battle.", |
| 1009 | "complete": "Congratulations! You know how to set up the chess board.", |
| 1010 | "levels": [ |
| 1011 | { |
| 1012 | "goal": "This is the initial position\nof every game of chess!\nMake any move to continue.", |
| 1013 | "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w - - 0 1", |
| 1014 | "color": "white", |
| 1015 | "goalType": "info", |
| 1016 | "nbMoves": 1, |
| 1017 | "detectCapture": "unprotected" |
| 1018 | }, |
| 1019 | { |
| 1020 | "goal": "First place the rooks!\nThey go in the corners.", |
| 1021 | "fen": "r6r/pppppppp/8/8/8/8/8/2RR4 w - - 0 1", |
| 1022 | "color": "white", |
| 1023 | "goalType": "apples", |
| 1024 | "nbMoves": 2, |
| 1025 | "apples": "a1 h1", |
| 1026 | "shapes": [ |
| 1027 | { |
| 1028 | "orig": "c1", |
| 1029 | "dest": "a1", |
| 1030 | "brush": "green" |
| 1031 | }, |
| 1032 | { |
| 1033 | "orig": "d1", |
| 1034 | "dest": "h1", |
| 1035 | "brush": "green" |
| 1036 | } |
| 1037 | ] |
| 1038 | }, |
| 1039 | { |
| 1040 | "goal": "Then place the knights!\nThey go next to the rooks.", |
| 1041 | "fen": "rn4nr/pppppppp/8/8/8/8/2NN4/R6R w - - 0 1", |
| 1042 | "color": "white", |
| 1043 | "goalType": "apples", |
| 1044 | "nbMoves": 4, |
| 1045 | "apples": "b1 g1" |
| 1046 | }, |
| 1047 | { |
| 1048 | "goal": "Place the bishops!\nThey go next to the knights.", |
| 1049 | "fen": "rnb2bnr/pppppppp/8/8/4BB2/8/8/RN4NR w - - 0 1", |
| 1050 | "color": "white", |
| 1051 | "goalType": "apples", |
| 1052 | "nbMoves": 4, |
| 1053 | "apples": "c1 f1" |
| 1054 | }, |
| 1055 | { |
| 1056 | "goal": "Place the queen!\nShe goes on her own colour.", |
| 1057 | "fen": "rnbq1bnr/pppppppp/8/8/5Q2/8/8/RNB2BNR w - - 0 1", |
| 1058 | "color": "white", |
| 1059 | "goalType": "apples", |
| 1060 | "nbMoves": 2, |
| 1061 | "apples": "d1" |
| 1062 | }, |
| 1063 | { |
| 1064 | "goal": "Place the king!\nRight next to his queen.", |
| 1065 | "fen": "rnbqkbnr/pppppppp/8/8/5K2/8/8/RNBQ1BNR w - - 0 1", |
| 1066 | "color": "white", |
| 1067 | "goalType": "apples", |
| 1068 | "nbMoves": 3, |
| 1069 | "apples": "e1" |
| 1070 | }, |
| 1071 | { |
| 1072 | "goal": "Pawns form the front line.\nMake any move to continue.", |
| 1073 | "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w - - 0 1", |
| 1074 | "color": "white", |
| 1075 | "goalType": "info", |
| 1076 | "nbMoves": 1, |
| 1077 | "detectCapture": "unprotected" |
| 1078 | } |
| 1079 | ] |
| 1080 | }, |
| 1081 | { |
| 1082 | "id": 14, |
| 1083 | "key": "castling", |
| 1084 | "title": "Castling", |
| 1085 | "subtitle": "The special king move", |
| 1086 | "intro": "Bring your king to safety, and deploy your rook for attack!", |
| 1087 | "complete": "Congratulations! You should almost always castle in a game.", |
| 1088 | "levels": [ |
| 1089 | { |
| 1090 | "goal": "Move your king two squares\nto castle king-side!", |
| 1091 | "fen": "rnbqkbnr/pppppppp/8/8/2B5/4PN2/PPPP1PPP/RNBQK2R w KQkq - 0 1", |
| 1092 | "color": "white", |
| 1093 | "goalType": "castle", |
| 1094 | "nbMoves": 1, |
| 1095 | "detectCapture": "unprotected", |
| 1096 | "castleSide": "king", |
| 1097 | "shapes": [ |
| 1098 | { |
| 1099 | "orig": "e1", |
| 1100 | "dest": "g1", |
| 1101 | "brush": "green" |
| 1102 | } |
| 1103 | ] |
| 1104 | }, |
| 1105 | { |
| 1106 | "goal": "Move your king two squares\nto castle queen-side!", |
| 1107 | "fen": "rnbqkbnr/pppppppp/8/8/4P3/1PN5/PBPPQPPP/R3KBNR w KQkq - 0 1", |
| 1108 | "color": "white", |
| 1109 | "goalType": "castle", |
| 1110 | "nbMoves": 1, |
| 1111 | "detectCapture": "unprotected", |
| 1112 | "castleSide": "queen", |
| 1113 | "shapes": [ |
| 1114 | { |
| 1115 | "orig": "e1", |
| 1116 | "dest": "c1", |
| 1117 | "brush": "green" |
| 1118 | } |
| 1119 | ] |
| 1120 | }, |
| 1121 | { |
| 1122 | "goal": "The knight is in the way!\nMove it, then castle king-side.", |
| 1123 | "fen": "rnbqkbnr/pppppppp/8/8/8/4P3/PPPPBPPP/RNBQK1NR w KQkq - 0 1", |
| 1124 | "color": "white", |
| 1125 | "goalType": "castle", |
| 1126 | "nbMoves": 2, |
| 1127 | "detectCapture": "unprotected", |
| 1128 | "castleSide": "king", |
| 1129 | "shapes": [ |
| 1130 | { |
| 1131 | "orig": "e1", |
| 1132 | "dest": "g1", |
| 1133 | "brush": "green" |
| 1134 | }, |
| 1135 | { |
| 1136 | "orig": "g1", |
| 1137 | "dest": "f3", |
| 1138 | "brush": "green" |
| 1139 | } |
| 1140 | ] |
| 1141 | }, |
| 1142 | { |
| 1143 | "goal": "Castle king-side!\nYou need to move out pieces first.", |
| 1144 | "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", |
| 1145 | "color": "white", |
| 1146 | "goalType": "castle", |
| 1147 | "nbMoves": 4, |
| 1148 | "detectCapture": "unprotected", |
| 1149 | "castleSide": "king", |
| 1150 | "shapes": [ |
| 1151 | { |
| 1152 | "orig": "e1", |
| 1153 | "dest": "g1", |
| 1154 | "brush": "green" |
| 1155 | } |
| 1156 | ] |
| 1157 | }, |
| 1158 | { |
| 1159 | "goal": "Castle queen-side!\nYou need to move out pieces first.", |
| 1160 | "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", |
| 1161 | "color": "white", |
| 1162 | "goalType": "castle", |
| 1163 | "nbMoves": 6, |
| 1164 | "detectCapture": "unprotected", |
| 1165 | "castleSide": "queen", |
| 1166 | "shapes": [ |
| 1167 | { |
| 1168 | "orig": "e1", |
| 1169 | "dest": "c1", |
| 1170 | "brush": "green" |
| 1171 | } |
| 1172 | ] |
| 1173 | }, |
| 1174 | { |
| 1175 | "goal": "You cannot castle if\nthe king has already moved\nor the rook has already moved.", |
| 1176 | "fen": "rnbqkbnr/pppppppp/8/8/3P4/1PN1PN2/PBPQBPPP/R3K1R1 w Qkq - 0 1", |
| 1177 | "color": "white", |
| 1178 | "goalType": "castle", |
| 1179 | "nbMoves": 1, |
| 1180 | "detectCapture": "unprotected", |
| 1181 | "castleSide": "queen", |
| 1182 | "shapes": [ |
| 1183 | { |
| 1184 | "orig": "e1", |
| 1185 | "dest": "g1", |
| 1186 | "brush": "red" |
| 1187 | }, |
| 1188 | { |
| 1189 | "orig": "e1", |
| 1190 | "dest": "c1", |
| 1191 | "brush": "green" |
| 1192 | } |
| 1193 | ] |
| 1194 | }, |
| 1195 | { |
| 1196 | "goal": "You cannot castle if\nthe king is attacked on the way.\nBlock the check then castle!", |
| 1197 | "fen": "rn1qkbnr/ppp1pppp/3p4/8/2b5/4PN2/PPPP1PPP/RNBQK2R w KQkq - 0 1", |
| 1198 | "color": "white", |
| 1199 | "goalType": "castle", |
| 1200 | "nbMoves": 2, |
| 1201 | "castleSide": "king", |
| 1202 | "shapes": [ |
| 1203 | { |
| 1204 | "orig": "c4", |
| 1205 | "dest": "f1", |
| 1206 | "brush": "red" |
| 1207 | }, |
| 1208 | { |
| 1209 | "orig": "e1", |
| 1210 | "brush": "green" |
| 1211 | }, |
| 1212 | { |
| 1213 | "orig": "f1", |
| 1214 | "brush": "green" |
| 1215 | }, |
| 1216 | { |
| 1217 | "orig": "g1", |
| 1218 | "brush": "green" |
| 1219 | } |
| 1220 | ] |
| 1221 | }, |
| 1222 | { |
| 1223 | "goal": "Find a way to\ncastle king-side!", |
| 1224 | "fen": "rnb2rk1/pppppppp/8/8/8/4Nb1n/PPPP1P1P/RNB1KB1R w KQkq - 0 1", |
| 1225 | "color": "white", |
| 1226 | "goalType": "castle", |
| 1227 | "nbMoves": 2, |
| 1228 | "castleSide": "king", |
| 1229 | "shapes": [ |
| 1230 | { |
| 1231 | "orig": "e1", |
| 1232 | "dest": "g1", |
| 1233 | "brush": "green" |
| 1234 | } |
| 1235 | ] |
| 1236 | }, |
| 1237 | { |
| 1238 | "goal": "Find a way to\ncastle queen-side!", |
| 1239 | "fen": "1r1k2nr/p2ppppp/7b/7b/4P3/2nP4/P1P2P2/RN2K3 w Q - 0 1", |
| 1240 | "color": "white", |
| 1241 | "goalType": "castle", |
| 1242 | "nbMoves": 4, |
| 1243 | "castleSide": "queen", |
| 1244 | "shapes": [ |
| 1245 | { |
| 1246 | "orig": "e1", |
| 1247 | "dest": "c1", |
| 1248 | "brush": "green" |
| 1249 | } |
| 1250 | ] |
| 1251 | } |
| 1252 | ] |
| 1253 | }, |
| 1254 | { |
| 1255 | "id": 15, |
| 1256 | "key": "enpassant", |
| 1257 | "title": "En passant rights", |
| 1258 | "subtitle": "The special pawn move", |
| 1259 | "intro": "When the opponent's pawn moves two squares, you can still take it as if it had only moved one square.", |
| 1260 | "complete": "Congratulations! You can now take en passant.", |
| 1261 | "levels": [ |
| 1262 | { |
| 1263 | "goal": "Black just moved the pawn\nby two squares!\nTake it en passant.", |
| 1264 | "fen": "rnbqkbnr/pppppppp/8/2P5/8/8/PP1PPPPP/RNBQKBNR b KQkq - 0 1", |
| 1265 | "color": "white", |
| 1266 | "goalType": "scenario", |
| 1267 | "nbMoves": 1, |
| 1268 | "captures": 1, |
| 1269 | "scenario": [ |
| 1270 | "d7d5", |
| 1271 | "c5d6" |
| 1272 | ] |
| 1273 | }, |
| 1274 | { |
| 1275 | "goal": "En passant only works\nimmediately after the opponent\nmoved the pawn.", |
| 1276 | "fen": "rnbqkbnr/ppp1pppp/8/2Pp3P/8/8/PP1PPPP1/RNBQKBNR b KQkq - 0 1", |
| 1277 | "color": "white", |
| 1278 | "goalType": "scenario", |
| 1279 | "nbMoves": 1, |
| 1280 | "captures": 1, |
| 1281 | "scenario": [ |
| 1282 | "g7g5", |
| 1283 | "h5g6" |
| 1284 | ] |
| 1285 | }, |
| 1286 | { |
| 1287 | "goal": "En passant only works\nif your pawn is on the 5th rank.", |
| 1288 | "fen": "rnbqkbnr/pppppppp/P7/2P5/8/8/PP1PPPP1/RNBQKBNR b KQkq - 0 1", |
| 1289 | "color": "white", |
| 1290 | "goalType": "scenario", |
| 1291 | "nbMoves": 1, |
| 1292 | "captures": 1, |
| 1293 | "scenario": [ |
| 1294 | "b7b5", |
| 1295 | "c5b6" |
| 1296 | ] |
| 1297 | }, |
| 1298 | { |
| 1299 | "goal": "Take all the pawns en passant!", |
| 1300 | "fen": "rnbqkbnr/pppppppp/8/2PPP2P/8/8/PP1P1PP1/RNBQKBNR b KQkq - 0 1", |
| 1301 | "color": "white", |
| 1302 | "goalType": "scenario", |
| 1303 | "nbMoves": 4, |
| 1304 | "captures": 4, |
| 1305 | "scenario": [ |
| 1306 | "b7b5", |
| 1307 | "c5b6", |
| 1308 | "f7f5", |
| 1309 | "e5f6", |
| 1310 | "c7c5", |
| 1311 | "d5c6", |
| 1312 | "g7g5", |
| 1313 | "h5g6" |
| 1314 | ] |
| 1315 | } |
| 1316 | ] |
| 1317 | }, |
| 1318 | { |
| 1319 | "id": 16, |
| 1320 | "key": "stalemate", |
| 1321 | "title": "Stalemate", |
| 1322 | "subtitle": "The game is a draw", |
| 1323 | "intro": "When a player is not in check and does not have a legal move, it's a stalemate. The game is drawn: no one wins, no one loses.", |
| 1324 | "complete": "Congratulations! Better be stalemated than checkmated!", |
| 1325 | "levels": [ |
| 1326 | { |
| 1327 | "goal": "", |
| 1328 | "fen": "k7/8/8/6B1/8/1R6/8/8 w - - 0 1", |
| 1329 | "color": "white", |
| 1330 | "goalType": "scenario", |
| 1331 | "nbMoves": 1, |
| 1332 | "nextButton": true, |
| 1333 | "scenario": [ |
| 1334 | "g5e3" |
| 1335 | ], |
| 1336 | "shapes": [ |
| 1337 | { |
| 1338 | "orig": "g5", |
| 1339 | "dest": "e3", |
| 1340 | "brush": "green" |
| 1341 | } |
| 1342 | ] |
| 1343 | }, |
| 1344 | { |
| 1345 | "goal": "", |
| 1346 | "fen": "8/7p/4N2k/8/8/3N4/8/1K6 w - - 0 1", |
| 1347 | "color": "white", |
| 1348 | "goalType": "scenario", |
| 1349 | "nbMoves": 1, |
| 1350 | "nextButton": true, |
| 1351 | "scenario": [ |
| 1352 | "d3f4" |
| 1353 | ] |
| 1354 | }, |
| 1355 | { |
| 1356 | "goal": "", |
| 1357 | "fen": "4k3/6p1/5p2/p4P2/PpB2N2/1K6/8/3R4 w - - 0 1", |
| 1358 | "color": "white", |
| 1359 | "goalType": "scenario", |
| 1360 | "nbMoves": 1, |
| 1361 | "nextButton": true, |
| 1362 | "scenario": [ |
| 1363 | "f4g6" |
| 1364 | ] |
| 1365 | }, |
| 1366 | { |
| 1367 | "goal": "", |
| 1368 | "fen": "8/6pk/6np/7K/8/3B4/8/1R6 w - - 0 1", |
| 1369 | "color": "white", |
| 1370 | "goalType": "scenario", |
| 1371 | "nbMoves": 1, |
| 1372 | "nextButton": true, |
| 1373 | "scenario": [ |
| 1374 | "b1b8" |
| 1375 | ] |
| 1376 | }, |
| 1377 | { |
| 1378 | "goal": "", |
| 1379 | "fen": "7R/pk6/p1pP4/K7/3BB2p/7p/1r5P/8 w - - 0 1", |
| 1380 | "color": "white", |
| 1381 | "goalType": "scenario", |
| 1382 | "nbMoves": 1, |
| 1383 | "nextButton": true, |
| 1384 | "scenario": [ |
| 1385 | "d4b2" |
| 1386 | ] |
| 1387 | } |
| 1388 | ] |
| 1389 | } |
| 1390 | ] |
| 1391 | }, |
| 1392 | { |
| 1393 | "key": "advanced", |
| 1394 | "name": "Advanced", |
| 1395 | "stages": [ |
| 1396 | { |
| 1397 | "id": 17, |
| 1398 | "key": "value", |
| 1399 | "title": "Piece value", |
| 1400 | "subtitle": "Evaluate piece strength", |
| 1401 | "intro": "Pieces with high mobility have a higher value!\nQueen = 9\nRook = 5\nBishop = 3\nKnight = 3\nPawn = 1\nThe king is priceless! Losing it means losing the game.", |
| 1402 | "complete": "Congratulations! You know the value of material!\nQueen = 9\nRook = 5\nBishop = 3\nKnight = 3\nPawn = 1", |
| 1403 | "levels": [ |
| 1404 | { |
| 1405 | "goal": "Take the piece\nwith the highest value!\nQueen > Bishop", |
| 1406 | "fen": "8/8/2qrbnp1/3P4/8/8/8/8 w - - 0 1", |
| 1407 | "color": "white", |
| 1408 | "goalType": "scenario", |
| 1409 | "nbMoves": 1, |
| 1410 | "captures": 1, |
| 1411 | "showPieceValues": true, |
| 1412 | "pointsForCapture": true, |
| 1413 | "scenario": [ |
| 1414 | "d5c6" |
| 1415 | ], |
| 1416 | "shapes": [ |
| 1417 | { |
| 1418 | "orig": "d5", |
| 1419 | "dest": "c6", |
| 1420 | "brush": "green" |
| 1421 | } |
| 1422 | ] |
| 1423 | }, |
| 1424 | { |
| 1425 | "goal": "Take the piece with the highest value!\nDo not exchange\na higher valued piece for a less valuable one.", |
| 1426 | "fen": "8/8/4b3/1p6/6r1/8/4Q3/8 w - - 0 1", |
| 1427 | "color": "white", |
| 1428 | "goalType": "scenario", |
| 1429 | "nbMoves": 1, |
| 1430 | "captures": 1, |
| 1431 | "detectCapture": "all", |
| 1432 | "showPieceValues": true, |
| 1433 | "pointsForCapture": true, |
| 1434 | "scenario": [ |
| 1435 | "e2e6" |
| 1436 | ] |
| 1437 | }, |
| 1438 | { |
| 1439 | "goal": "Take the piece\nwith the highest value!\nMake sure your move is legal!", |
| 1440 | "fen": "5b2/8/6N1/2q5/3Kn3/2rp4/3B4/8 w - - 0 1", |
| 1441 | "color": "white", |
| 1442 | "goalType": "scenario", |
| 1443 | "nbMoves": 1, |
| 1444 | "captures": 1, |
| 1445 | "detectCapture": "unprotected", |
| 1446 | "offerIllegalMove": true, |
| 1447 | "showPieceValues": true, |
| 1448 | "pointsForCapture": true, |
| 1449 | "scenario": [ |
| 1450 | "d4e4" |
| 1451 | ] |
| 1452 | }, |
| 1453 | { |
| 1454 | "goal": "Take the piece\nwith the highest value!", |
| 1455 | "fen": "1k4q1/pp6/8/3B4/2P5/1P1p2P1/P3Kr1P/3n4 w - - 0 1", |
| 1456 | "color": "white", |
| 1457 | "goalType": "scenario", |
| 1458 | "nbMoves": 1, |
| 1459 | "captures": 1, |
| 1460 | "offerIllegalMove": true, |
| 1461 | "showPieceValues": true, |
| 1462 | "pointsForCapture": true, |
| 1463 | "scenario": [ |
| 1464 | "e2d1" |
| 1465 | ] |
| 1466 | }, |
| 1467 | { |
| 1468 | "goal": "Take the piece\nwith the highest value!", |
| 1469 | "fen": "7k/3bqp1p/7r/5N2/6K1/6n1/PPP5/R1B5 w - - 0 1", |
| 1470 | "color": "white", |
| 1471 | "goalType": "scenario", |
| 1472 | "nbMoves": 1, |
| 1473 | "captures": 1, |
| 1474 | "detectCapture": "unprotected", |
| 1475 | "offerIllegalMove": true, |
| 1476 | "showPieceValues": true, |
| 1477 | "pointsForCapture": true, |
| 1478 | "scenario": [ |
| 1479 | "c1h6" |
| 1480 | ] |
| 1481 | } |
| 1482 | ] |
| 1483 | }, |
| 1484 | { |
| 1485 | "id": 18, |
| 1486 | "key": "check2", |
| 1487 | "title": "Check in two", |
| 1488 | "subtitle": "Two moves to give a check", |
| 1489 | "intro": "Find the right combination of two moves that checks the opponent's king!", |
| 1490 | "complete": "Congratulations! You checked your opponent, forcing them to defend their king!", |
| 1491 | "levels": [ |
| 1492 | { |
| 1493 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1494 | "fen": "2k5/2pb4/8/2R5/8/8/8/8 w - - 0 1", |
| 1495 | "color": "white", |
| 1496 | "goalType": "checkIn", |
| 1497 | "nbMoves": 2, |
| 1498 | "detectCapture": "unprotected", |
| 1499 | "n": 2, |
| 1500 | "shapes": [ |
| 1501 | { |
| 1502 | "orig": "c5", |
| 1503 | "dest": "a5", |
| 1504 | "brush": "green" |
| 1505 | }, |
| 1506 | { |
| 1507 | "orig": "a5", |
| 1508 | "dest": "a8", |
| 1509 | "brush": "green" |
| 1510 | } |
| 1511 | ] |
| 1512 | }, |
| 1513 | { |
| 1514 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1515 | "fen": "8/8/5k2/8/8/1N6/5b2/8 w - - 0 1", |
| 1516 | "color": "white", |
| 1517 | "goalType": "checkIn", |
| 1518 | "nbMoves": 2, |
| 1519 | "detectCapture": "unprotected", |
| 1520 | "n": 2 |
| 1521 | }, |
| 1522 | { |
| 1523 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1524 | "fen": "6k1/2r3pp/8/1N6/8/8/4B3/8 w - - 0 1", |
| 1525 | "color": "white", |
| 1526 | "goalType": "checkIn", |
| 1527 | "nbMoves": 2, |
| 1528 | "detectCapture": "unprotected", |
| 1529 | "n": 2 |
| 1530 | }, |
| 1531 | { |
| 1532 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1533 | "fen": "r3k3/7b/8/4B3/8/8/4N3/4R3 w - - 0 1", |
| 1534 | "color": "white", |
| 1535 | "goalType": "checkIn", |
| 1536 | "nbMoves": 2, |
| 1537 | "detectCapture": "unprotected", |
| 1538 | "n": 2 |
| 1539 | }, |
| 1540 | { |
| 1541 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1542 | "fen": "r1bqkb1r/pppp1p1p/2n2np1/4p3/2B5/4PN2/PPPP1PPP/RNBQK2R w KQkq - 0 1", |
| 1543 | "color": "white", |
| 1544 | "goalType": "checkIn", |
| 1545 | "nbMoves": 2, |
| 1546 | "detectCapture": "unprotected", |
| 1547 | "n": 2 |
| 1548 | }, |
| 1549 | { |
| 1550 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1551 | "fen": "8/8/8/2k5/q7/4N3/3B4/8 w - - 0 1", |
| 1552 | "color": "white", |
| 1553 | "goalType": "checkIn", |
| 1554 | "nbMoves": 2, |
| 1555 | "detectCapture": "unprotected", |
| 1556 | "n": 2 |
| 1557 | }, |
| 1558 | { |
| 1559 | "goal": "Threaten the opponent's king\nin two moves!", |
| 1560 | "fen": "r6r/1Q2nk2/1B3p2/8/8/8/8/8 w - - 0 1", |
| 1561 | "color": "white", |
| 1562 | "goalType": "checkIn", |
| 1563 | "nbMoves": 2, |
| 1564 | "detectCapture": "unprotected", |
| 1565 | "n": 2 |
| 1566 | } |
| 1567 | ] |
| 1568 | } |
| 1569 | ] |
| 1570 | } |
| 1571 | ] |
| 1572 | } |