Welcome Guest!
 editEverything
 Previous Message All Messages Next Message 
Re: the name of a game of chess  Tom Ritchford
 Jun 05, 2001 15:07 PDT 
oops!

we need to know which player is on the move to
completely disambiguate the position.


 2. by board position

2.1. a naming convention.
p, r, n, b, k, q are black
P, R, N, B, K, Q are white

write from top left to bottom right
either the piece name, or the number of spaces.

so a game would look like:


rnbqkbnrpppppppp32PPPPPPPPRNBQKBNR

rnbqkbnrpppppppp20P11PPPP1PPPRNBQKBNRAcdCD

 rnbqkbnrpppppppp20P11PPPP1PPPRNBQKBNR after one move

rnbqkbnrpppppppp20P11PPPP1PPPRNBQKBNRacdCD



 rnbqkbnrpp1ppppp10p10P11PPPP1PPPRNBQKBNR after two moves

rnbqkbnrpp1ppppp10p10P11PPPP1PPPRNBQKBNRAcdCD


 rnbqkbnrpp1ppppp10p1P19PPPP1PPPRNBQKBNR

rnbqkbnrpp1ppppp10p1P19PPPP1PPPRNBQKBNRacdCD


 rnbqkbnrpp2pppp10ppP19PPPP1PPPRNBQKBNR

rnbqkbnrpp2pppp10ppP19PPPP1PPPRNBQKBNRAcdCDv


 (can you do this without a board??)


to disambiguate positions, you'd also encode other data
about en passant and castling information some of the time.

and, DOH!, about which player is on the move!


a, A means it's black, white to move

 c, C means black, white can castle king side
d, D means black, white can castle queen side

s,t,u,v,w,x,y,z are the 8 possible files for ep capture.

so the last position would be completely disambiguated with:

rnbqkbnrpp2pppp10ppP19PPPP1PPPRNBQKBNRcdCDv

rnbqkbnrpp2pppp10ppP19PPPP1PPPRNBQKBNRAcdCDv!


.....all legal games of chess <http://solveChess.com/chess?refresh=0>...
........formal model of chess <http://solveChess.com/chess>.............
...programmer's documentation <http://solveChess.com/doc>...............
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.