Discussion of chess software programming and technical issues.
Moderators: hgm, Harvey Williamson, bob
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 6:43 pm
Post
by sje » Sun Jul 11, 2010 2:23 pm
Our Amsterdam friend is correct. The file plus rank disambiguation case is interesting as it was not mentioned in the FIDE rule book. (I don't know if the book has since been corrected.) But it was uncovered in my testing when I wrote the specification.
In the aforementioned position, only the move "Qa8xb7+" needs the special treatment.
From Myopic:
Code: Select all
Myopic v2010.06.25: A simple chess program for small systems
Copyright (C) 2010 by chessnotation@me.com Some rights reserved.
License: Creative Commons Attribution-Share Alike 3.0
See: http://creativecommons.org/licenses/by-sa/3.0/
Caution: No warranty; use at your own risk.
Enter 'hm' for help, 'qp' to quit.
[] sf QQ6/Qp5k/8/8/8/8/8/7K w - - 0 1
[] dm
Moves: Kg1 Kg2 Kh2 Q7xb7+ Qa1 Qa2 Qa3 Qa4 Qa5 Qa6 Qa8xb7+ Qb6 Qbxb7+ Qc5 Qc7+ Qc8 Qd4 Qd6 Qd8 Qe3 Qe5 Qe8 Qf2 Qf4 Qf8 Qg1 Qg3 Qg8+ Qh2+ Qh8+
[] qp
Done
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 6:43 pm
Post
by sje » Tue Jul 13, 2010 4:24 am
Another early test position:
[D]7k/6p1/8/8/8/QQQ5/QnQ5/QQQ4K w - - 0 1
Code: Select all
[] sf 7k/6p1/8/8/8/QQQ5/QnQ5/QQQ4K w - - 0 1
[] db
a b c d e f g h
8 :: :: :: bK 8
7 :: :: :: bP 7
6 :: :: :: :: 6
5 :: :: :: :: 5
4 :: :: :: :: 4
3 wQwQwQ :: :: 3
2 wQbNwQ:: :: :: 2
1 wQwQwQ :: ::wK 1
a b c d e f g h
[w - - 0 1]
[] dm
Moves: Kg1 Kg2 Kh2 Q1d1 Q1d2 Q1e1 Q1e3 Q2d1 Q2d2 Q2d3 Q3d2 Q3d3 Q3e1 Q3e3 Qa1xb2 Qa2xb2 Qa3xb2 Qa6 Qa7 Qa8# Qaa4 Qaa5 Qab4 Qac5 Qb1xb2 Qb3xb2 Qb5 Qb6 Qb7 Qb8# Qba4 Qbb4 Qbc4 Qc1xb2 Qc2xb2 Qc3xb2 Qc6 Qc7 Qc8# Qca5 Qcb4 Qcc4 Qcc5 Qd4 Qd5 Qd6 Qe2 Qe4 Qe5 Qe6 Qe7 Qf1 Qf2 Qf3 Qf4 Qf5 Qf6 Qf7 Qf8# Qg1 Qg2 Qg3 Qg5 Qg6 Qg8# Qh2# Qh3# Qh6# Qh7# Qxg7+