Oct-02-2020, 06:44 AM
Previous posts have shown that whatever algorithm, you need a kind of "GPS" to navigate
through the different turns in the matrix. Fortunately these "moves" are predictable.
In order to help our TS even further, this is my GPS:
These are not coordinates, but index increments (decrements) that are associated with the move.
through the different turns in the matrix. Fortunately these "moves" are predictable.
In order to help our TS even further, this is my GPS:
These are not coordinates, but index increments (decrements) that are associated with the move.
dictMoves = {'LEFT':(0,-1),'DOWN':(1,0),'RIGHT':(0,1),'UP':(-1,0)}And these are the "rails" you need to move along. (The vector is initiated dynamically, based on the seed number.
[2, 2, 2, 2, 4, 4, 4, 4, 6, 6, 6, 6]Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.