On 11/27/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
> The patterns is the same. The columns are changing in harmonic motion
> (so to speak).
Sharp eye, Ben!
I can see the pattern when I line up the sequence like this.
ACC
ABC
AAC
BAC
CAC
CAB
CAA
CBA
CCA
BCA
ACA
BCA
Okay, I think I have an idea how to make my nextItem() function work.
Figure out which row changed last. (If there's only one item in the
list, assume the second row changed last.)
If the row moved up (A->B):
- if it's not at the highest point (C):
- move it up (B->C)
- return
- elseif it moved down (C->B)
- if it's not at the lowest point (A):
- move it down (B->A)
- return
- else
- if you're on the last row:
- go to the first row
- else:
- go to the next row
Start over (recurse) at "If the row moved up..."
Patrick
--
Patrick McElhaney
704.560.9117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261875
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4