Last update: 14/01/98 |
Description: MATER is a simple mate searching program, implemented as an MS-DOS command. Given a legal position in FEN notation, the side to move, and the maximum number of moves to give mate, it will search and output either a move which gives mate in that number of moves or less, or the fact that there's no such move.
What it isn't:
Sintax: MATER [FEN position] [max.mov (1..64)] [all/checks (a/c)] where:
Download: IMPORTANT NOTE: I'VE THOROUGHLY CHECKED THE EXECUTABLE TO MAKE SURE IT'S VIRUS FREE, BUT I ACCEPT NO RESPONSIBILITIES. IF YOU DOWNLOAD THE EXECUTABLE, CHECK IT OUT WITH YOUR OWN ANTIVIRUS SOFTWARE BEFORE USING IT AT ALL. ALTERNATIVELY, YOU COULD COMPILE THE SOURCE CODE. Please note that apart from making freely available the code in this Section, and heavily commenting both source code and executable (including examples where appropriate), I cannot give any further support, specially via e-mail, so please don't ask any questions about this software nor advice about how to integrate it with your own programs, and such. I simply do not have the time. Thanks for understanding. REQUIRED LEGALESE (If you're normal people, give it a miss): All the code in this section has been written by myself specifically for it, I am the copyright holder, but you can download and use it, either in executable form and/or source code, in all or in part, as you wish, including its use as part of your own programs, be they freeware or commercial, absolutely free. The only thing you should not do is claim you wrote my routines. Apart from that, use them as you wish. Credit would be appreciated, but not required. Of course, no warranty of any kind is given at all. NO SUPPORT OF ANY KIND IS OFFERED. I don't claim the code is suitable or adequate for any purpose whatsoever, nor that it's bug free. I shall not be held responsible of any damage their use can do. You use it at your own risk. Your using the code indicates acceptance of these terms. If you are not willing to accept them, do not use the code.
You can download either the MS-DOS executable command, suitable for Intel PC processors (8088, 8086, 286, 386, 486, Pentium, etc) or any good MS-DOS emulator (Linux DOSEMU, for instance), and/or the Turbo Pascal source code.
Note: The Turbo Pascal source code can be compiled with version 7.0 of Turbo Pascal (or Borland Pascal) or higher, and can be adapted to Borland Delphi and other Pascal implementations (or even MS Visual Basic) quite easily.
IMPORTANT NOTE: This won't work if you are accessing this page at the Geocities mirror, because Geocities does not allow executable files (not even for downloading them) in their free pages.
|
Documentation: MATER has been implemented as an MS-DOS command. You execute it at the DOS prompt either in real MS-DOS or in a DOS shell from within Windows or Linux DOSEMU. Memory requirements are absolutely minimal. See the proper Sintax above. If executed without parameters, or with wrong or illegal parameters, MATER terminates inmediately, after printing a line describing what went wrong, and a brief resume of proper sintax, including an example:
|
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER b7/PP6/8/8/7K/6B1/6N1/4R1bk/ w 3 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # b - - - - - - - # White can't castle short 7 # P P - - - - - - # Black can't castle long 6 # - - - - - - - - # Black can't castle short 5 # - - - - - - - - # No en passant square 4 # - - - - - - - K # 3 # - - - - - - B - # 2 # - - - - - - N - # 1 # - - - - R - b k # # # # # # # # # # # FEN: b7/PP6/8/8/7K/6B1/6N1/4R1bk/ w Max. no. of moves to mate: 3 Searching *all moves* for: White Mate in 1....................................0.00 Mate in 2....................................0.00 Mate in 3......... Mate in 3 with b7xa8=N, t=0.10, nodes=1978 |
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER 8/8/1p5B/4p3/1p2k1P1/1P3n2/P4PB1/K2R4/ w 3 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - - - - - - - # White can't castle short 7 # - - - - - - - - # Black can't castle long 6 # - p - - - - - B # Black can't castle short 5 # - - - - p - - - # No en passant square 4 # - p - - k - P - # 3 # - P - - - n - - # 2 # P - - - - P B - # 1 # K - - R - - - - # # # # # # # # # # # FEN: 8/8/1p5B/4p3/1p2k1P1/1P3n2/P4PB1/K2R4/ w Max. no. of moves to mate: 3 Searching *all moves* for: White Mate in 1.............................0.00 Mate in 2.............................0.00 Mate in 3....... Mate in 3 with Bh6-c1, t=0.06, nodes=2178 |
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER 2N5/8/k2K4/8/p1PB4/P7/8/8/ w 4 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - N - - - - - # White can't castle short 7 # - - - - - - - - # Black can't castle long 6 # k - - K - - - - # Black can't castle short 5 # - - - - - - - - # No en passant square 4 # p - P B - - - - # 3 # P - - - - - - - # 2 # - - - - - - - - # 1 # - - - - - - - - # # # # # # # # # # # FEN: 2N5/8/k2K4/8/p1PB4/P7/8/8/ w Max. no. of moves to mate: 4 Searching *all moves* for: White Mate in 1.........................0.00 Mate in 2.........................0.00 Mate in 3.........................0.11 Mate in 4.... Mate in 4 with Kd6-c7, t=0.57, nodes=15315 |
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER rnbK2R1/p6p/p1kNpN1r/P3B1Q1/3P1p1p/5p2/5p1b/8/ w 4 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # r n b K - - R - # White can't castle short 7 # p - - - - - - p # Black can't castle long 6 # p - k N p N - r # Black can't castle short 5 # P - - - B - Q - # No en passant square 4 # - - - P - p - p # 3 # - - - - - p - - # 2 # - - - - - p - b # 1 # - - - - - - - - # # # # # # # # # # # FEN: rnbK2R1/p6p/p1kNpN1r/P3B1Q1/3P1p1p/5p2/5p1b/8/ w Max. no. of moves to mate: 4 Searching *all moves* for: White Mate in 1......................................0.00 Mate in 2......................................0.04 Mate in 3......................................2.50 Mate in 4................................... Mate in 4 with Qg5-g2, t=67.01, nodes=1203866 |
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER 8/1n2P2K/3p2p1/2p3pk/6pr/4ppr1/6p1/1b6/ w 3 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - - - - - - - # White can't castle short 7 # - n - - P - - K # Black can't castle long 6 # - - - p - - p - # Black can't castle short 5 # - - p - - - p k # No en passant square 4 # - - - - - - p r # 3 # - - - - p p r - # 2 # - - - - - - p - # 1 # - b - - - - - - # # # # # # # # # # # FEN: 8/1n2P2K/3p2p1/2p3pk/6pr/4ppr1/6p1/1b6/ w Max. no. of moves to mate: 3 Searching *all moves* for: White Mate in 1..........0.00 Mate in 2..........0.00 Mate in 3........ Mate in 3 with Kh7-g7, t=0.15, nodes=1170 |
If you want the full solution and other interesting data on this mate problem,
click on this link:
|
MATER 4K1R1/PP2P3/2k5/3pP3/3B4/6P1/8/8/ w 3 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - - - K - R - # White can't castle short 7 # P P - - P - - - # Black can't castle long 6 # - - k - - - - - # Black can't castle short 5 # - - - p P - - - # No en passant square 4 # - - - B - - - - # 3 # - - - - - - P - # 2 # - - - - - - - - # 1 # - - - - - - - - # # # # # # # # # # # FEN: 4K1R1/PP2P3/2k5/3pP3/3B4/6P1/8/8/ w Max. no. of moves to mate: 3 Searching *all moves* for: White Mate in 1..............................0.00 Mate in 2..............................0.00 Mate in 3................. Mate in 3 with b7-b8=R, t=0.20, nodes=4805 |
Here underpromotions are involved ...
|
MATER 8/2P1P1P1/3PkP2/8/4K3/8/8/8/ w 3 a MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - - - - - - - # White can't castle short 7 # - - P - P - P - # Black can't castle long 6 # - - - P k P - - # Black can't castle short 5 # - - - - - - - - # No en passant square 4 # - - - - K - - - # 3 # - - - - - - - - # 2 # - - - - - - - - # 1 # - - - - - - - - # # # # # # # # # # # FEN: 8/2P1P1P1/3PkP2/8/4K3/8/8/8/ w Max. no. of moves to mate: 3 Searching *all moves* for: White Mate in 1.........................0.00 Mate in 2.........................0.00 Mate in 3........ Mate in 3 with e7-e8=B, t=0.13, nodes=2288 |
Here the king is checkmated after a long
|
MATER 3nn3/2p2p1k/1p1pp1p1/p2B3p/r2B2N1/7N/8/7K/ w 12 c MATER: Mate searching program v1.1. (c) Valentin Albillo a b c d e f g h # # # # # # # # # # White can't castle long 8 # - - - n n - - - # White can't castle short 7 # - - p - - p - k # Black can't castle long 6 # - p - p p - p - # Black can't castle short 5 # p - - B - - - p # No en passant square 4 # r - - B - - N - # 3 # - - - - - - - N # 2 # - - - - - - - - # 1 # - - - - - - - K # # # # # # # # # # # FEN: 3nn3/2p2p1k/1p1pp1p1/p2B3p/r2B2N1/7N/8/7K/ w Max. no. of moves to mate: 12 Searching only checks for: White Mate in 1...................................0.00 Mate in 2...................................0.00 Mate in 3...................................0.00 Mate in 4...................................0.00 Mate in 5...................................0.00 Mate in 6...................................0.01 Mate in 7...................................0.03 Mate in 8...................................0.06 Mate in 9...................................0.11 Mate in 10...................................0.20 Mate in 11...................................0.38 Mate in 12............................. Mate in 12 with Nh3-g5, t=0.40, nodes=9342 |