38 lines
844 B
TypeScript
38 lines
844 B
TypeScript
const util = require('../util');
|
|
const arrow = util.arrow;
|
|
|
|
module.exports = {
|
|
key: 'king',
|
|
title: 'theKing',
|
|
subtitle: 'theMostImportantPiece',
|
|
image: util.assetUrl + 'images/learn/pieces/K.svg',
|
|
intro: 'kingIntro',
|
|
illustration: util.pieceImg('king'),
|
|
levels: [
|
|
{
|
|
goal: 'theKingIsSlow',
|
|
fen: '8/8/8/8/8/3K4/8/8 w - -',
|
|
apples: 'e6',
|
|
nbMoves: 3,
|
|
shapes: [arrow('d3d4'), arrow('d4d5'), arrow('d5e6')],
|
|
},
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/8/8/8/8/8/8/4K3 w - -',
|
|
apples: 'c2 d3 e2 e3',
|
|
nbMoves: 4,
|
|
},
|
|
{
|
|
goal: 'lastOne',
|
|
fen: '8/8/8/4K3/8/8/8/8 w - -',
|
|
apples: 'b5 c5 d6 e3 f3 g4',
|
|
nbMoves: 8,
|
|
},
|
|
].map(function (s, i) {
|
|
s = util.toLevel(s, i);
|
|
s.emptyApples = true;
|
|
return s;
|
|
}),
|
|
complete: 'kingComplete',
|
|
};
|