Welcome to Awk Chess
> awk -f chess2.awk
Please read guide carefully before playing:
Pieces | Options | Action |
---|---|---|
Pawn | ff | to go forward two step if it is pawn's first move |
f | to go forward one step | |
fr | to go forward right one step | |
fl | to go forward left one step | |
Knight | fr | to go 2 steps forward and 1 step right |
fl | to go 2 steps forward and 1 step left | |
br | to go 2 steps backward and 1 step right | |
bl | to go 2 steps backward and 1 step left | |
rf | to go 2 steps right and 1 step forward | |
rb | to go 2 steps right and 1 step backward | |
lf | to go 2 steps left and 1 step forward | |
lb | to go 2 steps left and 1 step backward | |
Rook | l n | to go left n steps |
r n | to go right n steps | |
f n | to go forward n steps | |
b n | to go backward n steps | |
Bishop | fr n | to go forward right diagonally n steps |
fl n | to go forward left diagonally n setps | |
br n | to go backward right diagonally n steps | |
bl n | to go backward left diagonally n steps | |
Queen | all Rook and Bishop options | |
King | all Rook and Bishop options withou [n] option |
boxpos option [n]
a7 f
b2 ff
b8 fr
a8 r 1
c8 fr 3
f5 br 2
a6 b 5