<PlatformTarget>AnyCPU</PlatformTarget>
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).XML</DocumentationFile>
<Prefer32Bit>true</Prefer32Bit>
- <StartArguments>17</StartArguments>
+ <StartArguments>16</StartArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
for move in moves do
match move with
| Spin s ->
- let last = danceFloor.[size - s ..] |> Array.rev
+ let last = danceFloor.[size - s ..]
Array.Copy (danceFloor, 0, danceFloor, s, size - s)
Array.Copy (last, danceFloor, s)
| Exchange (p1, p2) ->
applyMoves current
i + 1, current
)
- |> Seq.takeWhile (fun (i, state) -> i = 0 || not (state |=| initialState))
+ |> Seq.takeWhile (fun (i, state) -> i = 0 || i <= nb && not (state |=| initialState))
|> Seq.map snd
|> Array.ofSeq