Personal tools

Haskell Quiz/Chess960

From HaskellWiki

< Haskell Quiz(Difference between revisions)
Jump to: navigation, search
 
Line 9: Line 9:
   
 
==Solutions==
 
==Solutions==
  +
* [[Haskell Quiz/Chess960/Solution Sjanssen|Spencer Janssen]]

Revision as of 20:03, 5 January 2007

1 The problem

Chess960 is a chess variant where the initial positions of the pieces are randomly chosen, with a few constraints:

  • The king is between the rooks
  • The bishops are on opposite colored squares

In short, the goal is to randomly generate valid Chess960 boards.

http://www.rubyquiz.com/quiz106.html

2 Solutions