46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
const util = require('../util');
|
|
const arrow = util.arrow;
|
|
|
|
module.exports = {
|
|
key: 'queen',
|
|
title: 'theQueen',
|
|
subtitle: 'queenCombinesRookAndBishop',
|
|
image: util.assetUrl + 'images/learn/pieces/Q.svg',
|
|
intro: 'queenIntro',
|
|
illustration: util.pieceImg('queen'),
|
|
levels: [
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/8/8/8/8/8/4Q3/8 w - -',
|
|
apples: 'e5 b8',
|
|
nbMoves: 2,
|
|
shapes: [arrow('e2e5'), arrow('e5b8')],
|
|
},
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/8/8/8/3Q4/8/8/8 w - -',
|
|
apples: 'a3 f2 f8 h3',
|
|
nbMoves: 4,
|
|
},
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/8/8/8/2Q5/8/8/8 w - -',
|
|
apples: 'a3 d6 f1 f8 g3 h6',
|
|
nbMoves: 6,
|
|
},
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/6Q1/8/8/8/8/8/8 w - -',
|
|
apples: 'a2 b5 d3 g1 g8 h2 h5',
|
|
nbMoves: 7,
|
|
},
|
|
{
|
|
goal: 'grabAllTheStars',
|
|
fen: '8/8/8/8/8/8/8/4Q3 w - -',
|
|
apples: 'a6 d1 f2 f6 g6 g8 h1 h4',
|
|
nbMoves: 9,
|
|
},
|
|
].map(util.toLevel),
|
|
complete: 'queenComplete',
|
|
};
|