Talk:Number reversal game

From Rosetta Code

This seems to be a variation of what WP calls Pancake sorting. Should the task perhaps be revised somehow? Or perhaps a new "pancake sorting" task be added, and then note this as being applied pancake sorting? -- Eriksiers 20:02, 4 April 2010 (UTC)

Hi Eriksiers, the only restriction on the method of sorting is that only reversals are allowed. It could be that pancake sorting might be a way to get to the desired result, but that algorithm is not mandated. The program does not do a sort. --Paddy3118 20:47, 4 April 2010 (UTC)
What I meant is that I think that it makes the player to perform a pancake sort, kinda... Shrug. It was just a thought. -- Eriksiers 01:38, 5 April 2010 (UTC)
Whoa, I see what you mean though. Maybe a C.f. ? --Paddy3118 05:35, 5 April 2010 (UTC)
What you did looks good to me. I'm too tired right now to give it any more thought tonight. -- Eriksiers 06:37, 5 April 2010 (UTC)

What Happens if the initial shuffle returns the list in sorted order?

The Python entry is set up to handle this (rare, but still possible), case. Will other entries silently assume the player has won without doing anything? --Paddy3118 17:21, 17 April 2010 (UTC)