Talk:Generate Chess960 starting position: Difference between revisions
→random starting position: Random: Now any one of 960. |
|||
Line 6: | Line 6: | ||
How about ''A player's eight pawns must be ···'' or something similar. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 04:53, 8 May 2014 (UTC) |
How about ''A player's eight pawns must be ···'' or something similar. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 04:53, 8 May 2014 (UTC) |
||
:I don't think that's necessary. There are also two queens, two kings, four rooks and so on. I think it's obvious enough that we're talking about the placing of the pieces for ''each'' camp.--[[User:Grondilu|Grondilu]] ([[User talk:Grondilu|talk]]) 05:52, 8 May 2014 (UTC) |
|||
==random starting position== |
==random starting position== |
Revision as of 05:52, 8 May 2014
clarifying wording
In the first rule, the wording states ··· all eight pawns must be placed on the second rank.
There are sixteen pawns.
How about A player's eight pawns must be ··· or something similar. -- Gerard Schildberger (talk) 04:53, 8 May 2014 (UTC)
- I don't think that's necessary. There are also two queens, two kings, four rooks and so on. I think it's obvious enough that we're talking about the placing of the pieces for each camp.--Grondilu (talk) 05:52, 8 May 2014 (UTC)
random starting position
A trivial REXX program (of two statements): <lang rexx>if random(0,1) then say 'NBQRBKNR'
else say 'QBNRBKNR'</lang>
would, in the strictest sense, fullfill a random Chess960 starting position (albeit only two random positions).
However, I believe the spirit of the requirement of random be that the random position would produce any of the 960 possible starting positions. -- Gerard Schildberger (talk) 04:53, 8 May 2014 (UTC)
To this end, I wrote a REXX program (2nd programming entry) that randomly generates all possible unique 960 Chess960 starting positions and it shows a log of the results (unique starting positions) after each one-thousand generations.
This would make a good extension to the requirements to verify that the programming examples being used to create a random Chess960 starting position do indeed produce all possible starting positions. -- Gerard Schildberger (talk) 05:42, 8 May 2014 (UTC)
- Modified task description to force entries to be able to produce one of the 960. --Paddy3118 (talk) 05:52, 8 May 2014 (UTC)