« first day (1024 days earlier)      last day (3093 days later) » 

10:45 PM
public void EatAndHopRight()
{
// find current position
int currentPosition = WhereAmI();

// The Grasshopper jumps to leaves to the right
for(int i = LeavesList.IndexOf(currentPosition); i <= LeavesList.Count; i++)
{
if (i == LeavesList.Count)
{
i = 0;
}
else
{
//Remove Node and move two step forwords
LeavesList.RemoveAt(i);
}
}
}
 
1 message moved from C#
 

« first day (1024 days earlier)      last day (3093 days later) »