## LearnChess.ppn
## Last updated 9/27/11
## Copyright 2011 Tom Kerrigan. All rights reserved.

chapter Introduction

section Welcome!

page
#Welcome to Learn Chess!
#Millions of people around the world know how to play chess.\
#You're about to become one of them!
#<small>Tap the arrow at the bottom right to continue.</small>

page
draw highlight e2
draw arrow green e2 e3
draw piece e2
#As you read these pages, you can try out what you're learning by moving pieces on the board above.
#<center>Try moving the pawn!
#<small>(Only legal moves are allowed.)</small></center>

page
#To undo your moves (and see the page's text again), go to a different page, then come back.

page
#At any point in time, you can tap the "book" button at the bottom right to see the Table of Contents and switch to a different section.

page
#Please note that almost all of these pages are written from the point of view of the white player.\
#In the diagrams, it's usually white's turn to move.

page
#Now it's time to start learning the basics! Enjoy!

section The basics

page
#This is what a chess board looks like at the beginning of a game.
#
#Chess is a game for two players, "black" and "white."

page
#The players take turns moving pieces. White always moves first.
#
#You can move one piece per turn. (And you can't forfeit your turn.)

page
position r1bqkbnr/pppppppp/n7/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -
draw arrow green e4 e5
draw arrow green f1 a6
draw arrow green g1 f3
draw piece e4
draw piece f1
draw piece g1
#Each type of piece has its own rules for how it can move and capture the opponent's pieces.\
#Once a piece is captured, it's gone for the rest of the game.

page
draw highlight e8
#The object of the game is to capture your opponent's king.
#
#Now you'll learn how the pieces move and capture.

chapter How the pieces move

section Pawns

page
draw highlight a2
draw highlight b2
draw highlight c2
draw highlight d2
draw highlight e2
draw highlight f2
draw highlight g2
draw highlight h2
#These are your pawns.
#
#Pawns form the front line of your chess military.\
#You almost always start a game with a pawn move.

page
position rnbqkb1r/pppppppp/8/8/4Pn2/5P2/PPPP2PP/RNBQKBNR w KQkq -
draw arrow green d2 d3
draw arrow green e4 e5
draw arrow green g2 g3
draw piece d2
draw piece e4
draw piece g2
#Pawns can march forward one square, as long as they aren't blocked by other pieces.
#Moving a pawn forward is called <i>pushing</i> it.

page
position rnbqkb1r/pppppppp/8/8/4Pn2/5P2/PPPP2PP/RNBQKBNR w KQkq -
draw arrow red e4 e3
draw piece e4
#Pawns can't move backwards.

page
position rnbqkbnr/pppppppp/8/8/8/2P1N3/PP1PPPPP/RNBQKB1R w KQkq -
draw arrow green d2 d4
draw arrow green f2 f4
draw arrow green g2 g3
draw piece d2
draw piece f2
draw piece g2
#If a pawn is on its original square, you can push it one square OR two squares.

page
position rnbqkb1r/p1pppppp/1p6/2P3n1/5P2/8/PP1PP1PP/RNBQKBNR w KQkq -
draw arrow green c5 b6
draw arrow green c5 c6
draw arrow green f4 f5
draw arrow green f4 g5
draw piece c5
draw piece f4
#A pawn can move forward one square diagonally, but only to capture an enemy piece.

page
position rnbqkb2/pppppp1P/8/8/8/8/PPPPPPP1/RNBQKBNR w KQ -
draw arrow green h7 h8
draw piece h7
#If you push a pawn to the other end of the board, you can <i>promote</i> it to a knight, bishop, rook, or queen.

section King

page
draw highlight e1
#This is your king.
#
#He's the most important piece. If he gets captured, you lose the game.

page
position rn1qkbnr/pppppppp/8/8/3PP3/2Pb1P2/PP2K1PP/RNBQ1BNR w kq -
draw arrow green e2 e3
draw arrow green e2 d2
draw arrow green e2 f2
draw arrow green e2 e1
draw arrow green e2 d3
draw piece e2
#The king can move one square in any direction.\
#If there's an enemy piece on the square, he can capture it.
#
#(It's good to be the king!)

section Queen

page
draw highlight d1
#This is your queen.
#
#She's the most powerful piece.

page
position rnbqkb1r/pppppppp/5n2/8/3Q1P2/4P3/PPPP2PP/RNB1KBNR w KQkq -
draw arrow green d4 a7
draw arrow green d4 d7
draw arrow green d4 f6
draw arrow green d4 a4
draw arrow green d4 e4
draw arrow green d4 c3
draw arrow green d4 d3
draw piece d4
#The queen can slide any number of squares you want in any direction.

section Rooks

page
draw highlight a1
draw highlight h1
#These are your rooks.
#(Not "castles"!)

page
position rnbqkb1r/pppppppp/5n2/8/3R1P2/4P3/PPPP2PP/1NBQKBNR w Kkq -
draw arrow green d4 d7
draw arrow green d4 a4
draw arrow green d4 e4
draw arrow green d4 d3
draw piece d4
#Rooks slide any number of squares horizontally or vertically.
#This is easy to remember because rooks are shaped like squares and move in "square" directions.

section Bishops

page
draw highlight c1
draw highlight f1
#These are your bishops.

page
position rnbqkb1r/pppppppp/5n2/8/3B1P2/4P3/PPPP2PP/RN1QKBNR w KQkq -
draw arrow green d4 a7
draw arrow green d4 f6
draw arrow green d4 c3
draw piece d4
#Bishops slide any number of squares diagonally.

section Knights

page
draw highlight b1
draw highlight g1
#These are your knights.
#(Not "horseys"!)

page
position rnbqkbnr/pppppppp/8/8/6P1/8/PPPPPP1P/RNBQKBNR w KQkq -
draw arrow green g3 f3
draw arrow green g1 g3
draw piece g1
#A knight moves 2 squares horizontally or vertically (whichever you want), then another square to form an "L" shape.

page
position rnbqkbnr/pppppppp/8/8/6P1/8/PPPPPP1P/RNBQKBNR w KQkq -
draw arrow green g1 f3
draw piece g1
#In these diagrams, the L shape will be abbreviated to just one arrow.\
#You can still think of it as an L.

page
position rn1qkbnr/ppp3pp/3pb3/4Pp2/5N2/7P/PPP1PPP1/RNBQKB1R w KQkq -
draw arrow green f4 e6
draw arrow green f4 g6
draw arrow green f4 d5
draw arrow green f4 h5
draw arrow green f4 d3
draw piece f4
#The knight is the only piece that can jump over other pieces. (Like a horse!)

chapter Checkmate

section Check

page
position rnbqk2r/pppp1ppp/4pn2/8/1b1PP3/P7/1PP2PPP/RNBQKBNR w KQkq -
draw arrow gray c3 d2
#If your opponent is <i>attacking</i> (threatening to capture) your king, you're in <i>check.</i>\
#You have to make a move that gets you out of check.\
#Any other move is illegal.

page
position rnbqk2r/pppp1ppp/4pn2/8/1b1PP3/P7/1PP2PPP/RNBQKBNR w KQkq -
draw arrow green a3 b4
draw piece a3
#There are three basic ways to get out of check:
#
#1) You can capture the checking piece.

page
position rnbqk2r/pppp1ppp/4pn2/8/1b1PP3/P7/1PP2PPP/RNBQKBNR w KQkq -
draw arrow green e1 e2
draw piece e1
#2) You can move your king out of check.

page
position rnbqk2r/pppp1ppp/4pn2/8/1b1PP3/P7/1PP2PPP/RNBQKBNR w KQkq -
draw arrow green b1 c3
draw piece b1
#3) You can move a piece between your king and the checking piece.

page
position rnb1kbnr/ppppqppp/8/3p4/4P3/8/PPP2PPP/RNBQKBNR w KQkq -
draw arrow gray e6 e2
draw arrow red e4 d5
draw piece e4
#It's illegal to make a move that would expose you to check.

section Checkmate

page
position 8/8/8/8/8/3k4/4q3/4K3 w - -
#If you're in check and there's no way out, it's <i>checkmate,</i> and you lose the game.

page
position 8/8/8/7k/3K4/6R1/4R3/8 w - -
draw arrow green e2 h2
draw piece e2
#Therefore, the goal of chess is to trap your opponent's king so that no matter what he does, you can capture it on the next move.
#(The game ends at this point.)

chapter Basic strategy

section Material

page
position 4k3/4p3/8/8/8/8/PPPPPPPP/RNBQKBNR w KQ -
#You can checkmate your opponent with one piece, but it's much easier if you have a lot of <i>material</i> (pieces).
#
#Each piece has a different value.

page
position 4k3/8/8/2NNB1q/8/2PPB1r1/8/4K3 w - -
draw equals f3
draw equals f5
#Approximate values of the pieces:
#
#Knight, Bishop = 3 pawns
#Rook = 5 pawns
#Queen = 9 pawns

page
position 1nbqkbnr/pppp1ppp/4p3/3r4/8/2N5/PPPPPPPP/R1BQKBNR w KQk -
draw arrow green e6 d5
draw arrow green c3 d5
draw piece c3
#Knowing the values of the pieces is useful.\
#For example, if you can <i>exchange</i> (trade) a knight for a rook, it's almost always good. You <i>win the exchange.</i>

section Center control

page
position rnbqkbnr/pppppppp/8/8/2BPPB2/2NQ1N2/PPP2PPP/3RR1K1 w kq -
#In general, you want your pieces to be in the center of the board, or attacking the center.\
#This is called <i>center control.</i>

page
position rnbqkbnr/pppppppp/8/8/2BPPB2/2NQ1N2/PPP2PPP/3RR1K1 w kq -
#If you control the center, it's easier for your pieces to move around and team up to attack your opponent.

section Mobility

page
position rnbqkbnr/pppppppp/8/8/8/6P1/PPPPPPBP/RNBQK1NR w KQkq -
draw arrow gray g2 b7
draw arrow gray g2 h3
draw arrow gray g2 f1
draw piece g2
#A piece is <i>mobile</i> if it can move around freely, without being attacked or blocked by other pieces.

page
position rnbqkbnr/ppppp1pp/8/8/5pP1/5P2/PPPPP1BP/RNBQK1NR w KQkq -
draw arrow red g2 f3
draw piece g2
#It's important for your pieces to have good mobility and not get trapped.\
#A trapped piece is not very useful, and it's easier to capture.

section How to win

page
position 8/8/5k2/8/8/2K1Q3/8/8 w - -
#If there's very little material left on the board, you're in the <i>endgame</i>.
#
#There are a few basics to know about checkmating your opponent.

page
position 8/8/5k2/8/8/2K1Q3/8/8 w - -
draw arrow gray g7 h8
#You want to force your opponent's king into a corner, or onto an edge, where there are fewer escape routes available.

page
position 8/8/6k1/3KQ3/8/8/8/8 w - -
draw arrow gray e5 e8
draw arrow gray e5 h5
draw piece e5
#You can box in the enemy king with a queen or rook. Defend your piece with your own king, and make sure the box always gets smaller.

page
position 7k/5K2/6Q1/8/8/8/8/8 w - -
draw arrow green g6 g7
draw piece g6
#This is a checkmate with a queen.
#
#(Can you checkmate from the position on the previous page?)

page
position 7k/5K2/6R1/8/8/8/8/8 w - -
draw arrow green g6 h6
draw piece g6
#This is a checkmate with a rook.

chapter More rules

section Castling

page
position r1bqkbnr/1ppp1ppp/p1n5/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq -
draw arrow green e1 g1
draw piece e1
#If you haven't moved your king and you haven't moved one of your rooks, and there aren't any pieces in between them, you can <i>castle.</i>

page
position rnbqkb1r/ppp2pp1/4pn1p/3p4/3P1B2/2N5/PPPQPPPP/R3KBNR w KQkq -
draw arrow green e1 c1
draw piece e1
#Your king moves two squares towards the rook, then the rook jumps over the king to the adjacent square.
#
#(This is a <i>queenside</i> castle.)

page
position rnbqk2r/ppp2ppp/4pn2/3p4/1b1P4/4PN2/PPP1BPPP/RNBQK2R w KQkq -
draw arrow gray c3 d2
draw arrow red e1 g1
draw piece e1
#You can't castle if you're in check.

page
position r2qkbnr/p1pppppp/bpn5/8/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq -
draw arrow gray b5 e2
draw arrow red e1 g1
draw piece e1
#You can't castle through check or into check (i.e., if the square your king moves across, or moves to, is being attacked).

section Stalemate

page
position 7k/6R1/5K2/8/8/8/8/8 b - -
flip_board no
#If your opponent has no legal moves and is not in check, it's a <i>stalemate,</i> which is a draw (tie).

page
position 7k/8/5K2/6R1/8/8/8/8 w - -
draw arrow red g5 g7
draw piece g5
#If you're winning, be careful, don't stalemate your opponent by accident.
#
#(Try to checkmate from this position instead!)

section En passant

page
position rnbqkbnr/pppp1ppp/4p3/4P3/8/8/PPPP1PPP/RNBQKBNR b KQkq -
flip_board no
draw arrow green f7 f5
draw piece f7
#If your opponent pushes a pawn two squares, and you have an adjacent pawn, you can do an <i>en passant</i> capture.

page
position rnbqkbnr/pppp2pp/4p3/4Pp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6
draw arrow green e5 f6
draw piece e5
#You capture the pawn as if it had only moved one square.

page
position rnbqkbnr/pppp2pp/4p3/5p2/4P3/8/PPPP1PPP/RNBQKBNR w KQkq f6
draw arrow red e5 f6
draw arrow green e4 e5
draw piece e4
#You can only do an <i>en passant</i> capture immediately after your opponent pushes his pawn.

section Threefold repetition

page
position rnb1r2k/pp3ppB/2p5/3p4/3P1Pnq/P1N1P1N1/1PQB1KP1/R4R2 w - -
draw arrow green f2 f3
draw piece f2
#If the same position occurs in a game three times, the player to move is allowed to claim a draw.
#
#This is called a <i>threefold repetition.</i>

page
position rnb1r2k/pp3ppB/2p5/3p4/3P1Pnq/P1N1PKN1/1PQB2P1/R4R2 b - -
flip_board no
draw arrow green g4 h2
draw piece g4
#Sometimes, if you're losing, you can maneuver into a situation where it's best for both players to move back and forth, and you can get a threefold repetition draw.

section Fifty move rule

page
position 7k/8/4NKB1/8/8/4N3/8/4r3 w - -
#In chess terminology, a "move" is a move by both sides, i.e., a white move <i>plus</i> a black move.
#(It's weird.)

page
position 7k/8/4NKB1/8/8/4N3/8/4r3 w - -
#If fifty (or more) moves go by and neither player has captured a piece or moved a pawn, the player to move is allowed to claim a draw. This is called the <i>fifty move rule</i>.

page
position 7k/8/4NKB1/8/8/4N3/8/4r3 w - -
#This usually happens when there are no pawns left and neither side can make any progress.

chapter Basic tactics

section Introduction

page
#In chess, <i>tactics</i> are sequences of moves that limit your opponent's options and give you an advantage.

section Forks

page
position 6k1/5ppp/2r5/5r2/8/5NPR/5PKP/8 w - -
draw arrow gray d4 c6
draw arrow gray d4 f5
draw arrow green f3 d4
draw piece f3
#A <i>fork</i> is when you use a piece to attack two of your opponent's pieces simultaneously.\
#They can't both escape at the same time!

section Pins

page
position r1bqkb1r/pppp1ppp/2n2n2/4p3/4P1BB/3P4/PPP2PPP/RN1QK1NR b KQkq -
flip_board no
draw arrow gray h4 e7
draw piece h4
#You can use a bishop, rook, or queen to discourage an opponent's piece from moving by <i>pinning</i> it to a more valuable piece.

page
position r1bqkb1r/pppp1ppp/2n2n2/4p3/4P1BB/3P4/PPP2PPP/RN1QK1NR b KQkq -
flip_board no
draw arrow red f6 g4
draw piece f6
draw arrow gray h4 e7
draw piece h4
#If your opponent moves the pinned piece, you can take the valuable piece "behind" it.

section Skewers

page
position rnb1kbnr/pppppp1p/6p1/4q3/8/PP6/RBPPPPPP/1N1QKBNR b Kkq -
flip_board no
draw arrow gray b2 g7
draw piece b2
#You can win material by <i>skewering</i> a valuable piece.\
#Your opponent is forced to move the valuable piece, so you can take the one behind it.

chapter More strategy

section Coordinates

page
position 8/8/4k3/8/4P3/4K3/8/8 w - -
draw coordinates
#When you read and talk about chess, the locations of pieces and squares are specified using coordinates.

page
position 8/8/4k3/8/4P3/4K3/8/8 w - -
draw coordinates
#The first part of a coordinate is a letter specifying the <i>file</i> (column).\
#The files are lettered A through H.

page
position 8/8/4k3/8/4P3/4K3/8/8 w - -
draw coordinates
draw highlight e4
#The second part of a coordinate is a number specifying the <i>rank</i> (row).
#
#Therefore, the white pawn in this diagram is on e4.

section Stages

page
#A chess game consists of three parts: the <i>opening,</i> the <i>middlegame,</i> and the <i>endgame.</i>

page
position rnbqkbnr/pppppppp/8/8/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq -
draw arrow gray b1 c3
draw arrow gray d2 d3
draw piece b1
draw piece d2
#In the opening, both players focus on pushing their center pawns and <i>developing</i> their knights and bishops, i.e., moving them to the center.

page
position r1bqr1k1/1p1p1ppp/p1n1pn2/8/1bPN1B2/2N3P1/PP2PPBP/R2Q1RK1 w - -
#The middlegame starts after the pieces are developed.\
#Players try to win material, attack each other's kings, and get into a good position for the endgame.

page
position 8/pn4k1/4P1pp/8/6P1/8/P6P/2rN1R1K w - -
#In the endgame, the queens are typically off the board and each side only has a few pieces.\
#The goal is often to promote a pawn before your opponent.

section The pieces

page
#The rest of this chapter is organized by type of piece and will tell you how to position each piece optimally.

section Knights

page
position rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R w KQkq -
draw arrow red f3 h4
draw piece f3
#Placing a knight on the edge of the board, or in a corner, cuts its mobility in half and should be avoided.

page
position rnbqkbnr/ppppp1p1/5pNp/8/8/8/PPPPPPPP/RNBQKB1R w KQkq -
draw arrow gray g6 f8
draw arrow gray g6 h8
draw arrow gray g6 e7
draw piece g6
#A strong location for a knight is in front of an enemy pawn, in such a way that it can't be attacked by enemy pawns.\
#This is called an <i>outpost.</i>

section Bishops

page
position rnbqkbnr/ppppp2p/8/6p1/5pP1/5P1P/PPPPP1B1/RNBQK1NR w KQkq -
draw arrow red g2 f3
draw arrow red g2 h3
draw piece g2
#A bishop's mobility depends mainly on the pawns on the board.\
#Take care to arrange your pawns so they don't block your bishops.

page
position 8/8/3k4/6P1/3KB3/6p1/1p6/8 w - -
draw arrow gray e4 g6
draw arrow gray e4 b1
draw arrow gray e4 g2
draw piece e4
#Bishops become more valuable in the endgame.\
#They are good at protecting friendly pawns and preventing enemy pawns from promoting.

page
position r1bqkbnr/ppp2ppp/2n5/4p3/4P3/4B3/PPP1BPPP/RN1QK1NR w KQkq -
draw arrow gray e3 a7
draw arrow gray e3 h6
draw arrow gray e2 a6
draw arrow gray e2 h5
draw piece e3
draw piece e2
#A <i>bishop pair</i> is valuable because they can attack all the squares on the board, not just the light or dark squares.

section Rooks

page
position r2qk2r/ppp2ppp/2nbbn2/3p4/3P4/3B1N2/PPP2PPP/RNBQR1K1 w kq -
draw arrow gray e1 e8
draw piece e1
#The best place for a rook is on an <i>open file</i> (a file with no pawns) so it can control enemy territory.

page
position r2q1rk1/pppb1ppp/2np1n2/8/1bB1PN2/2NP4/PPP3PP/R1BQ1RK1 w - -
draw arrow gray f1 f7
draw piece f1
#A file with no friendly pawns is called a <i>semi-open file</i> and is good too.

page
position r2q1rk1/pppb1ppp/2np1n2/8/1bB1PN2/2NPBR2/PPP1Q1PP/5RK1 w - -
draw arrow gray f3 f7
draw piece f3
draw arrow gray f1 f3
draw piece f1
#Two rooks that defend each other are <i>doubled rooks.</i>\
#They can give you even more control over a file.

page
position r7/p1p1Rppk/1p5p/8/1P6/P1P5/5PPP/6K1 w - -
draw arrow gray e7 c7
draw arrow gray e7 f7
draw piece e7
#A <i>rook on the 7th</i> (rank) can easily attack enemy pawns.

page
position 6k1/5ppp/8/8/8/1r4P1/5PKP/4R3 w - -
draw arrow green e1 e8
draw piece e1
#If the enemy king can't move to the 7th rank, you can use a rook or queen to get a <i>back rank mate.</i>

section Queen

page
position 3r1r2/1pq1b1k1/1np3P1/p2nPpp1/P2B4/3B2P1/NP2Q2P/2RR2K1 w - -
draw arrow green e2 h5
draw piece e2
#If the queen is close to the enemy king, she can control the area and is useful for checkmates in the middlegame.

page
position rnbqkbnr/pppp1ppp/8/8/3Q4/4P3/PPP2PPP/RNB1KBNR b KQkq -
flip_board no
draw arrow green b8 c6
draw piece b8
#Avoid moving the queen out in the opening.\
#Your opponent can develop his pieces and attack her at the same time.

section King

page
position r1bqkbnr/1ppp1ppp/p1n5/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq -
draw arrow green e1 g1
draw piece e1
#Castling should be done in the opening.\
#It develops a rook and it moves your king to a corner, away from danger.

page
position r1bqkbnr/1ppp1ppp/p1n5/4p3/2B1P3/5N2/PPPP1PPP/RNBQ1RK1 w kq -
draw highlight f2
draw highlight g2
draw highlight h2
#The pawns in front of a castled king provide a valuable <i>pawn shelter.</i>\
#Try not to move or lose them.

page
position 3r1rk1/1p2p2p/p3q3/3p2p1/4p3/1Q4P1/PP2PP1P/2RR2K1 w - -
draw arrow gray f7 f3
#Open files near your king allow rooks and queens to attack your pawn shelter and are dangerous.

page
position 2b2rk1/1r2bppp/p1n1p3/q2p1PP1/3B3P/2N1Q3/PPP1B3/2KR3R w - -
draw arrow gray f2 f4
draw arrow gray g2 g4
draw arrow gray h2 h3
draw arrow green f5 f6
draw piece f5
#You can push your pawns to disrupt your opponent's defenses.\
#This is called a <i>pawn storm.</i>

page
position 3r4/p5p1/1pP2pkp/1P6/P3p1P1/7P/6P1/2R3K1 w - -
draw arrow green g1 f2
draw piece g1
#In the endgame, the king becomes a powerful piece and should be moved to the center, especially to help with pawn promotion.

section Pawns

page
position rnbqkbnr/pppppppp/8/8/4P3/1PP3P1/P2P1P1P/RNBQKBNR w KQkq -
#Pawns should protect each other.\
#A pawn that can't be protected by another pawn is <i>weak.</i><br>

page
position rnbqkbnr/pppppppp/8/8/4P3/1PP3P1/P2P1P1P/RNBQKBNR w KQkq -
#Each of these pawns is protected, or can be protected with one move.
#
#The following are the common types of weak pawns...

page
position r1bqk1nr/pppp1ppp/2n5/4p3/4P3/2P2N2/P1PP1PPP/R1BQKB1R w KQkq -
draw highlight c2
draw highlight c3
#Two pawns on the same file are <i>doubled pawns</i> and are usually bad.\
#One of them probably has poor mobility or isn't protected.

page
position r1bqk1nr/pppp1ppp/2n5/4p3/4P3/2P2N2/P1PP1PPP/R1BQKB1R w KQkq -
draw highlight a2
#A pawn with no friendly pawns on either side is an <i>isolated pawn</i> and can't be defended by a pawn.

page
position rnbqkbnr/1pp1pppp/8/3p4/p2P4/P1P5/1P2PPPP/RNBQKBNR w KQkq -
draw arrow red b2 b4
draw piece b2
draw arrow gray a4 b3
draw piece a4
#A pawn that can't be pushed to be defended by another pawn is a <i>backward pawn.</i>

page
position 5b2/2pkr1r1/1pR3pR/pP2P1P1/P3K3/4B3/5P2/8 w - -
draw arrow gray d6 d8
draw arrow gray e5 e8
draw arrow gray f6 f8
draw arrow gray e5 d6
draw arrow gray e5 f6
draw piece e5
#A pawn with no enemy pawns in front of it is called a <i>passed pawn</i>.
#
#Passed pawns are extremely valuable because they're easier to promote.

chapter Extras

section History

page
#Chess originated in India or Afghanistan before 600 AD.
#
#It migrated to Persia (Iran) and then Italy and Spain around 1000 AD.

page
#Southern Europeans developed the modern rules around 1475.\
#The first modern tournament was held in London in 1851 and was won by a German, Adolf Anderssen.

section Algebraic notation

page
#In chess, there's a standard way to write moves called <i>Standard Algebraic Notation</i> (SAN).

page
draw arrow green e2 e4
draw piece e2
#Pawn pushes are just the coordinates of the square the pawn is moving to.\
#(The <i>destination square</i>.)
#This common opening move is "e4."

page
draw arrow green g1 f3
draw piece g1
#Piece moves are a letter indicating the type of piece (N, B, R, Q, K), then the destination square.
#(N for kNight, K for King.)
#This move is Nf3.

page
position rnbqkb1r/ppp1pppp/5n2/3p2B1/3P4/8/PPP1PPPP/RN1QKBNR w KQkq -
draw arrow green g5 f6
draw piece g5
#If the move is a capture, an 'x' is inserted before the destination square.
#This move is Bxf6.
#(Read: "Bishop takes f6.")

page
position rnbqkb1r/pppppppp/8/5n2/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -
draw arrow green e4 f5
draw piece e4
#If a pawn is capturing, the file of the pawn is specified.
#This move is exf5.
#("e takes f5.")

page
position rnbqkbnr/pppp2pp/5p2/4p3/4P3/2N5/PPPP1PPP/R1BQKBNR w KQkq -
draw arrow green d1 h5
draw piece d1
#If the move checks the opponent, a '+' is added to the end of the move.
#If it's checkmate, a '#' is added.
#This move is Qh5+.
#("Queen to h5, check.")

page
position rn1qk2r/pppbbppp/3p1n2/4p3/4P3/2NPB3/PPPQ1PPP/R3KBNR w KQkq -
draw arrow gray e1 c1
draw piece e1
draw arrow gray e8 g8
draw piece e8
#Kingside castling is O-O.
#Queenside castling is O-O-O.
#(This is easy to remember because queenside castling is "longer.")

page
position 4k3/6P1/4K3/8/8/8/3p4/8 w - -
draw arrow green g7 g8
draw piece g7
#If a pawn is promoted, a '=Q' is added to the end. (Or '=R' for rook, etc.)
#This move is g8=Q#.

page
position rnbqkbnr/pppppppp/8/6N1/R2R4/8/PPPPPPPP/2BQKBN1 w kq -
draw arrow gray d4 c4
draw arrow green a4 c4
draw piece a4
draw piece d4
#If the move is ambiguous, the piece's file is inserted after the piece letter.
#This move is Rac4.
#("Rook on a to c4.")

page
position rnbqkbnr/pppppppp/8/6N1/R2R4/8/PPPPPPPP/2BQKBN1 w kq -
draw arrow gray g1 f3
draw arrow green g5 f3
draw piece g1
draw piece g5
#If both pieces are on the same file, the rank must be specified.
#This move is N5f3.

section Time controls

page
#Chess players may use a chess clock to keep track of how much time each player uses.
#
#(This is required in official games.)

page
#A <i>time control</i> refers to how much time a player is allowed to use.
#If a player runs out of time, he loses.
#This is called <i>flagging</i> because a flag inside the chess clock falls down.

page
#A common tournament time control requires a player to play 40 moves in the first 2 hours, then 20 moves in each subsequent hour.

page
#A common <i>blitz chess</i> time control gives a player 5 minutes to play all his moves.\
#("Game in 5.")

page
#Bobby Fischer invented the <i>Fischer increment,</i> which is an amount of extra time a player gets after each move (e.g., 12 seconds).\
#This requires an electronic chess clock.

section Ratings

page
#Chess organizations use the mathematical "Elo" rating system to rate their members.\
#Most players in the United States Chess Federation are rated around 1200.

page
#Every time you play a rated game in the organization, you add or subtract a small number of points to your rating depending on the outcome of the game and your opponent's rating.

page
#In 1999, Garry Kasparov achieved the highest-ever rating in the FIDE organization: 2851 points.\
#Many consider him the best player in history.

section The End

page
#This is the end of Learn Chess. I hope you found it fun and useful!
