Skip to content

DanilSuits/chessKata-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fischer Chess Positions in TDD

A re-examination of a TDD kata proposed long ago

https://groups.yahoo.com/neo/groups/testdrivendevelopment/conversations/topics/2648

Introduction

The original challenge was raised by Peter Siebel

In a variant of chess called Fischer Random Chess, you start the board in a (partially) random position according to the following rules. You place the pawns in their normal starting positions. Then you place the white pieces in the first rank in a random arrangement excepting that:

  • The bishops are each on different colored squares.
  • The king is somewhere between the two rooks.

Then the black pieces are placed in there corresponding places on the other side of the board.

Write a function (method, procedure, whatever) that returns a randomly generated legal arrangement of the eight white pieces.

About

TDD the Fischer chess kata in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages