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 Java 8 in Action this week in the Java 8 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:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: tripleCut Solitaire Algorithim
 
Similar Threads
Doubts Regarding Questions of SCBCD5.0
Help, lunarcal.js
Problem moving columns and rows in 2D array.
I NEED TO DISPLAY A RESULTSET IN A JSP CORE TAG
JavaCross