This is a mirror of official site: http://jasper-net.blogspot.com/

TSQL Challenge 58 - Playing Chess in TSQL – Part 1

| Wednesday, August 17, 2011
Sample Data

 
ID  Layout
--- ----------------------------------------------------
1   rnbqk2r/ppppbppp/5n2/4p3/2B1P3/5Q2/PPPP1PPP/RNB1K1NR

Each row in the input table represents the current position of a chess board filled with pieces at various positions. The sample input given above represents a chess board as given below.

Your job is to translate this into a result set that looks like the below illustration.

chess_2.png

Read more: Beyond Relational
QR: playing-chess-in-tsql-part-1.aspx

Posted via email from Jasper-net

0 comments: