var m = require('mithril');
var util = require('../util');
var assert = require('../assert');
var arrow = util.arrow;

var imgUrl = util.assetUrl + 'images/learn/rally-the-troops.svg';

module.exports = {
  key: 'check2',
  title: 'Board setup',
  subtitle: 'How the game starts',
  image: imgUrl,
  intro: 'The two armies face each other, ready for the battle.',
  illustration: m('img.bg', {
    src: imgUrl
  }),
  levels: [{ // rook
    goal: 'TODO',
    fen: '4k3/8/2b5/8/8/8/8/R7 w - - 0 1',
    shapes: [arrow('a1e1')]
  }].map(function(l, i) {
    return util.toLevel(l, i);
  }),
  complete: 'Congratulations! You checked your opponent, forcing them to defend their king!'
};
;

@@ -210,14 +210,13 @@
 y: '
-check2
+setup
 ',%0A 
@@ -461,68 +461,62 @@
 n: '
-4k3/8/2b5/8/8/8/8/R7 w - - 0 1',%0A    shapes: %5Barrow('a1e1')%5D
+rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w - - 0 1'
 %0A  %7D

prepare board setup stage