16
3
What could be more polar opposites than chess and demolition derby. You would think that no one who enjoys one would enjoy the other... until today.
Rules
The starting position is a standard chess board:
RNBQKBNR
PPPPPPPP
PPPPPPPP
RNBQKBNR
Looks normal enough, until you find out it's an EVERY PIECE FOR ITSELF, LAST PIECE STANDING competition:
- On every turn, each piece on the board gets to make one randomly*-selected valid move (using it's standard move rules). However, the order the pieces move in is randomized every turn.
- A piece can capture ANY PIECE, even if it's the same color as it, even a king.
- Pawns can capture FORWARD, as well as diagonal. Moreover, like normal, if there is an empty space in front of it, a pawn can move two spaces on its first move (they can also capture that way.) Furthermore, pawns promote to any random piece (including king) other than a pawn.
- The winner is the last piece standing. However if after 1000 turns, there is more than one piece left, all of the remaining pieces are winners.
- No En Passants, Checks, Castles, etc.
Output
After every turn output the turn number, and what the board looks like. After a piece is killed it is removed from the board. After the first turn, the board may look like this:
1.
K
RBQ N BR
NP P P
PP P P
R PP
BPN PNP
K R
Q
After 1000 moves the board may look like this:
1000.
Q K
P N R
R B N
Q
And the game ends.
Or Maybe after 556 turns the board look like this:
556. R
So the game ends there.
*Please ensure all randomization done in this challenge is uniform (every possibility has an equal chance of occurring).
If a pawn can capture without moving diagonally, can it also move diagonally without capturing? – trichoplax – 2016-01-10T22:10:52.670
1@tri no, it cant. – geokavel – 2016-01-10T22:11:29.870
Can a pawn capture two pieces at once when it does a double move? – orlp – 2016-01-10T23:59:36.857
1@orlp No, i should clarify that. You can only move two, if there's an empty space in front of you. – geokavel – 2016-01-11T00:06:05.510
If a piece cannot move when it takes its turn, is it skipped? What about if it's skipped, then a move opens up due to the piece that moved after it? Can it move before the turn is over? – mbomb007 – 2017-01-05T22:52:02.483
1
Also, in your examples, you need to distinguish the pawns as black or white (
– mbomb007 – 2017-01-05T22:53:43.660p
black andP
white is standard in FEN), because they move different directions.I think you should use 3 rounds as an example, not just randomized boards. – Magic Octopus Urn – 2017-10-27T19:56:23.597