>    restart; read `d:/Aek/Rook/Rook.txt`;

`Welcome to Rook, a Maple package written by`

`Thotsaporn (Aek) Thanatipanonda with help from his`

`brother Thotsaphon. First Version: July 26th, 2013 `

`It accompanies the article: `

`Rook Endgame Problem in Chess `

` by Thotsaporn (Aek) Thanatipanonda`

`available from authors' website`

>    Help();

` Main Function: BoardRook(m,n);`

` Input: the width and height of the board `

` Output: the maximum of number of checkmate`

` from all positions of rook endgame on an.`

` m by n board.`

` `

` Try  

`

>    seq(BoardRook(3,i),i=3..12);

`Board of size`, 3, `by`, 3, `mate in`, 3

`Board of size`, 3, `by`, 4, `mate in`, 5

`Board of size`, 3, `by`, 5, `mate in`, 7

`Board of size`, 3, `by`, 6, `mate in`, 8

`Board of size`, 3, `by`, 7, `mate in`, 9

`Board of size`, 3, `by`, 8, `mate in`, 10

`Board of size`, 3, `by`, 9, `mate in`, 11

`Board of size`, 3, `by`, 10, `mate in`, 12

`Board of size`, 3, `by`, 11, `mate in`, 13

`Board of size`, 3, `by`, 12, `mate in`, 14

>    seq(BoardRook(4,i),i=4..8);

`Board of size`, 4, `by`, 4, `mate in`, 7

`Board of size`, 4, `by`, 5, `mate in`, 9

`Board of size`, 4, `by`, 6, `mate in`, 10

`Board of size`, 4, `by`, 7, `mate in`, 11

`Board of size`, 4, `by`, 8, `mate in`, 12

>