From: Jamie Macey Date: 2006-12-17T07:23:05+09:00 Subject: Re: [QUIZ] Chess960 (#106) On 12/15/06, Daniel Martin wrote: > Ruby Quiz writes: > > > Output could be as follows. > > > > Starting Position 432: > > > > White > > > > a1 b1 c1 d1 e1 f1 g1 h1 > > N B B R K R Q N > > > > Black > > > > a8 b8 c8 d8 e8 f8 g8 h8 > > N B B R K R Q N > > > > Or some better output. > > Let me suggest that another potential output format is an html page > that when viewed in a browser looks like the opening format. I happen > to think that the chess boards shown on > http://www.pmwiki.org/wiki/Cookbook/ChessMarkup > look particularly nice, and shouldn't be too hard to duplicate. > (they're done as 8x8 tables, with the colors of the squares done by > CSS and the pieces being .png images with transparency) Presumably > some enterprising person could then churn out a Rails page that showed > a given starting position. I haven't bothered generating the full table, I'm just randomly generating the layouts. I thought the app was a bit too lightweight for Rails, but I stole the images from pmwiki.org and set up a camping app here: http://www.tracefunc.com:3301/ - just refresh for a different layout. If I can find more time this weekend, I'll see about doing the table lookup and adding that info to the page. - Jamie