aspose file tools*
The moose likes Java in General and the fly likes tripleCut Solitaire Algorithim Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "tripleCut Solitaire Algorithim" Watch "tripleCut Solitaire Algorithim" New topic
Author

tripleCut Solitaire Algorithim

mike fusc
Greenhorn

Joined: Mar 07, 2010
Posts: 15
So basically i have a circular linked list.

I have to flip all the cards before 27/28 with the cards after.

For example;

13 10 19 25 8 12 20 18 26 1 9 22 15 3 17 24 2 21 23 7|27 14 5 4 11 16 28|6

circular list becomes

6|27 14 5 4 11 16 28|13 10 19 25 8 12 20 18 26 1 9 22 15 3 17 24 2 21 23 7.

so far i have this, but when the list rebuilds it's missing jokerA to jokerB:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tripleCut Solitaire Algorithim