Another Type of circle Solved
This commit is contained in:
@@ -214,25 +214,46 @@ func FirstCirclePart():
|
|||||||
for nums in Intersections.size() - Intersections.find(Root):
|
for nums in Intersections.size() - Intersections.find(Root):
|
||||||
if nums > 0:
|
if nums > 0:
|
||||||
Skipping_array.push_back((Intersections.find(Root) - nums) + 1)
|
Skipping_array.push_back((Intersections.find(Root) - nums) + 1)
|
||||||
print(Skipping_array)
|
|
||||||
|
print("Skipping Array is : ", Skipping_array)
|
||||||
|
|
||||||
for x in Skipping_array:
|
for x in Skipping_array:
|
||||||
print(x)
|
print("This is X: ",x)
|
||||||
|
|
||||||
if Tree_Array[x] == 1:
|
if Tree_Array[x] == 1:
|
||||||
print("Skip")
|
print("Skip")
|
||||||
GoToParts()
|
Skip()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("Go To")
|
print("Go To")
|
||||||
|
#Goto()
|
||||||
|
|
||||||
|
func Skip():
|
||||||
|
#print("CircleInts: ", CircleInts, " and CircleInts Max: ", CircleIntsMax)
|
||||||
|
if CircleInts + 1 == CircleIntsMax:
|
||||||
|
FirstIntChange()
|
||||||
|
GoBack(Individual_Steps[0])
|
||||||
|
Individual_Steps.pop_front()
|
||||||
|
else:
|
||||||
|
for n in 2:
|
||||||
|
print("N is equal to: ",n)
|
||||||
|
GoBack(Individual_Steps[0])
|
||||||
|
Individual_Steps.pop_front()
|
||||||
|
|
||||||
|
func Goto():
|
||||||
|
if CircleInts + 1 == CircleIntsMax:
|
||||||
|
FirstIntChange()
|
||||||
|
else:
|
||||||
|
GoBack(Individual_Steps[0])
|
||||||
|
Individual_Steps.pop_front()
|
||||||
|
|
||||||
|
func FirstIntChange():
|
||||||
|
var FirstGoTo = []
|
||||||
|
FirstGoTo.push_front(Prev_dir_Opp)
|
||||||
|
FirstGoTo.append_array(Ordered_Commands_Backward)
|
||||||
|
GoBack(FirstGoTo)
|
||||||
|
print(FirstGoTo)
|
||||||
|
|
||||||
func GoToParts():
|
|
||||||
var holder = []
|
|
||||||
for n in (CircleManualDistance()):
|
|
||||||
#holder.push_back(LogDump[n])
|
|
||||||
holder.push_front(Prev_dir_Opp)
|
|
||||||
print(holder)
|
|
||||||
print(LogDump)
|
|
||||||
#GoBack(holder)
|
|
||||||
|
|
||||||
func CircleRootsAndInts():
|
func CircleRootsAndInts():
|
||||||
if Cicling == true:
|
if Cicling == true:
|
||||||
@@ -254,9 +275,9 @@ func SolvinCircleDeadEnds():
|
|||||||
if CircleManualDistance() != null:
|
if CircleManualDistance() != null:
|
||||||
for n in CircleManualDistance():
|
for n in CircleManualDistance():
|
||||||
GoBack(LogDump[n])
|
GoBack(LogDump[n])
|
||||||
#print(Individual_Steps[0])
|
|
||||||
CircleInts -= 1
|
CircleInts -= 1
|
||||||
GoBack(Individual_Steps[0])
|
GoBack(Individual_Steps[0])
|
||||||
|
Individual_Steps.pop_front()
|
||||||
print(CircleInts)
|
print(CircleInts)
|
||||||
|
|
||||||
func CircleManualDistance():
|
func CircleManualDistance():
|
||||||
|
|||||||
Reference in New Issue
Block a user