3 New Notifications

New Badge Earned
Get 1K upvotes on your post
Life choices of my cat
Earned 210

Drag Images here or Browse from your computer.

Trending Posts
Sorted by Newest First
S
ShadoWofXaoS 05.05.20 08:27 pm

The exchange of algorithms and discussion (Robo Instructus)

All welcome interested in. Offer in this topic to share their experience, opinions, ideas on this game.
Share your...

Level 1 Hello, Robo(Hello Robot)
Спойлерrobo_forward()
robo_left()
robo_forward()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()

Statistics:
Time (MS): 3525
Number of phrases: 9
The total number of phrases: 9
12 Comments
Sort by:
S
ShadoWofXaoS 05.05.20

Level 2 Keep Going!(Keep it up!)
Spoiler
loop
robo_forward()
robo_left()
robo_forward()

Statistics:
Time (MS): 18800
Number of phrases: 4
The total number of sentences: 52

S
ShadoWofXaoS 05.05.20

Level 3 Look Before You Leap(Look out)
Spoiler
robo_forward()
if robo_scan() is -1
robo_left()
robo_forward()

Statistics:
Time (MS): 2625
Number of phrases: 6
The total number of phrases: 11

S
ShadoWofXaoS 05.05.20

Level 4 Testing Ground(Training ground)
Spoiler
loop
if robo_scan() >= 1
robo_forward()
else
robo_left()

Statistics:
Time (MS): 44900
Number of phrases: 7
The total number of phrases: 294

S
ShadoWofXaoS 05.05.20

Level 5 Use Your Powers Wisely(before Leaving, extinguish the light) || Option 1
Spoiler
loop
var scan=robo_scan()
if scan >= 1
robo_forward()
if scan is 10
if robo_use() is 0
robo_use()
else
robo_left()

Statistics:
Time (MS): 119550
Number of phrases: 13
The total number of phrases: 867

S
ShadoWofXaoS 05.05.20

Level 5 Use Your Powers Wisely(before Leaving, extinguish the light) || Option 2
Spoiler
robo_left()
if robo_scan() is -1
robo_left()
robo_left()
robo_forward()
robo_left()
robo_forward()
robo_forward()
if robo_use() is 0
robo_use()
robo_left()
robo_forward()
robo_forward()
robo_forward()
if robo_scan() is -999
robo_left()
robo_left()
robo_forward()
robo_forward()
if robo_scan() is -999
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_use()
robo_left()
robo_left()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()
robo_forward()
else
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_use()
robo_left()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()

Statistics:
Time (MS): 42150
Number of sentences: 87
The total number of sentences: 122

S
ShadoWofXaoS 05.05.20

Level 6 Satnav To Safety(Safe navigation)
Spoiler
var Secur_Loc_ID_Save = 0
var Scan = 0
loop
Scan=robo_scan()
if Scan > 0
robo_forward()
if Scan is 11
#if Secur_Loc_ID_Save is 0
Secur_Loc_ID_Save = robo_use()
#if Scan is 10
#if robo_use() is 0
#robo_use()
else if Secur_Loc_ID_Save is not 0
if the Scan is -999
if robo_forward_location() is Secur_Loc_ID_Save
robo_forward()
else
robo_left()

else
robo_left()

Statistics:
Time (MS): 42975
Number of phrases: 22
The total number of phrases: 531

S
ShadoWofXaoS 05.05.20

Level 7 Gatehouse(Gates)
Spoiler
var Secur_Loc_ID_Save = 0
var Scan = 0
loop
Scan=robo_scan()
if Scan > 0
robo_forward()
if Scan is 11
if Secur_Loc_ID_Save is 0
Secur_Loc_ID_Save = robo_use()
if Scan is 10
if robo_use() is 0
robo_use()
else if Scan is -999
if Secur_Loc_ID_Save is not 0
if robo_forward_location() is Secur_Loc_ID_Save
robo_forward()
Secur_Loc_ID_Save = 0
else
robo_left()
else
robo_left()

else
robo_left()

Statistics:
Time (MS): 138175
Number of sentences: 33
The total number of phrases: 1891

S
ShadoWofXaoS 05.05.20

Level 8.1 The Ring(Ring) || Option 1
Spoiler
var Line_Type_Now
var Loop_Count_1
var Loop_Count_2
var Loop_Count_End_1
var Step_Type
var Step_Type_Next
var Step_Count = 0
var Flag_1=0

loop
for Line_Type_Now in 4,3,0,2,0,2,0,1
if Flag_1 is not 0
if Line_Type_Now is 4
continue
if Line_Type_Now is 3
continue

#БШ_1 - block steps of the 1st type ( 1st subunit of the (first default): robo_forward() + 2-nd subunit: robo_forward() + robo_left() ); БШ_1.1 - 1st subunit of the 1st type of block steps, etc., etc.
loop
if Line_Type_Now is 0 #Transition Zone (Zone of transition: <БШ_1.2(1pcs.)> - 1 times in a row)
Loop_Count_End_1 = 1*1
Step_Type = 2
break
if Line_Type_Now is 1 #Short Line (the Short line: <БШ_1(2)> - 1 times in a row)
Loop_Count_End_1 = 2*2
Step_Type = 1
break
if Line_Type_Now is 2 #Long Line (Long line: <БШ_1(3 pieces)> 2 times in a row)
Loop_Count_End_1 = 2*3
Step_Type = 1
break
if Line_Type_Now is 3 #Second Step (pre-loop movement: <БШ_1(1 piece)> - 1 times in a row)
Loop_Count_End_1 = 2*1
Step_Type = 1
break
if Line_Type_Now is 4 #First Step (Moving in the annular zone: <БШ_1.1(1pcs.)> - 1 times in a row)
Loop_Count_End_1 = 1*1
Step_Type = 1
break

Loop_Count_1 = 1
while Loop_Count_1 <= Loop_Count_End_1
if Step_Type is 1
robo_forward()
Step_Type_Next = 2
else
robo_forward()
robo_left()
Step_Type_Next = 1
Step_Count += 1
if Step_Count is 9
robo_left()
if robo_scan() > 0
robo_forward()
else
for Loop_Count_2 in 1,2
robo_left()
if Step_Count is 17
for Loop_Count_2 in 1,2
robo_left()
if robo_scan() > 0
robo_forward()
else
robo_left()
if Step_Count is 26
for Loop_Count_2 in 1,2
robo_left()
robo_forward()
if robo_scan() > 0
robo_forward()
else
for Loop_Count_2 in 1,2
robo_left()
for Loop_Count_2 in 1,2
robo_forward()
robo_left()
if Step_Count is 34
for Loop_Count_2 in 1,2
robo_left()
robo_forward()
if robo_scan() > 0
robo_forward()
#else
#for Loop_Count_2 in 1,2
#robo_left()
#robo_forward()
Step_Type = Step_Type_Next
Loop_Count_1 += 1
Flag_1 = 1

Statistics:
Time (MS): 66475
Number of sentences: 100
The total number of phrases: 2277

S
ShadoWofXaoS 05.05.20

Level 8.1 The Ring(Ring) || Option 2
Spoiler
var Count = 0
var Scan

loop
if Count is 94
robo_left()
Scan = robo_scan()
Count += 1
if Scan > 0
robo_forward()
else
robo_left()

Statistics:
Time (MS): 216375
Number of phrases: 12
The total number of phrases: 3031
P. S. This variant was not created by me but found on the network, but I think he would have come to mind almost any...
P. P. S. Source:
Spoiler

S
ShadoWofXaoS 05.05.20

Level 8.2 Sense Of Direction(Sense of direction) || Option 1
Spoiler
var Scan_Type = 0
var Scan_Type_12_Direction = 0
var Cell_Type_Now
var Cell_Type_Following
var Cell_Side_Num_Now
var Cell_Side_Num_Following
var Cell_Side_Num_Safety = 0
var Robo_Move_Type

Cell_Type_Now = 1
Cell_Side_Num_Now = 3
Robo_Move_Type = 0

loop
if Robo_Move_Type is not 0
loop
if Robo_Move_Type is 1 #robo_forward()
#robo_forward()
if Cell_Type_Now is 1 #1-left; 2-right; 3-top side
Cell_Type_Following = 2
if Cell_Side_Num_Now is 1
Cell_Side_Num_Following = 1
break
if Cell_Side_Num_Now is 2
Cell_Side_Num_Following = 4
break
if Cell_Side_Num_Now is 3
Cell_Side_Num_Following = 2
break
if Cell_Type_Now is 2 #1-left; 2-right side; 4-bottom side
Cell_Type_Following = 1
if Cell_Side_Num_Now is 1
Cell_Side_Num_Following = 3
break
if Cell_Side_Num_Now is 2
Cell_Side_Num_Following = 2
break
if Cell_Side_Num_Now is 4
Cell_Side_Num_Following = 1
break

if Robo_Move_Type is 2 #robo_left()
#robo_left()
if Cell_Type_Now is 1 #1-left; 2-right; 3-top side
Cell_Type_Following = 1
if Cell_Side_Num_Now is 1
Cell_Side_Num_Following = 2
break
if Cell_Side_Num_Now is 2
Cell_Side_Num_Following = 3
break
if Cell_Side_Num_Now is 3
Cell_Side_Num_Following = 1
break
if Cell_Type_Now is 2 #1-left; 2-right side; 4-bottom side
Cell_Type_Following = 2
if Cell_Side_Num_Now is 1
Cell_Side_Num_Following = 4
break
if Cell_Side_Num_Now is 2
Cell_Side_Num_Following = 1
break
if Cell_Side_Num_Now is 4
Cell_Side_Num_Following = 2
break

Cell_Type_Now = Cell_Type_Following
Cell_Side_Num_Now = Cell_Side_Num_Following


if Scan_Type_12_Direction is 0
Scan_Type = robo_scan()
if Scan_Type > 0
robo_forward()
Robo_Move_Type = 1
if Scan_Type is 12
Scan_Type_12_Direction = robo_use()
else
if Scan_Type is -999
if Cell_Side_Num_Safety is 1
robo_forward()
robo_left()
Robo_Move_Type = 2
else
loop
if Scan_Type_12_Direction is 1
if Cell_Side_Num_Now is 3
Cell_Side_Num_Safety = 1
Scan_Type_12_Direction = 0
Robo_Move_Type = 0
break
else
robo_left()
Robo_Move_Type = 2
break
if Scan_Type_12_Direction is 2
if Cell_Side_Num_Now is 2
Cell_Side_Num_Safety = 1
Scan_Type_12_Direction = 0
Robo_Move_Type = 0
break
else
robo_left()
Robo_Move_Type = 2
break

Statistics:
Time (MS): 25225
Number of sentences: 109
The total number of phrases: 1086

S
ShadoWofXaoS 05.05.20

Level 8.2 Sense Of Direction(Sense of direction) || Option 2
Spoiler
var Scan_Type
var Loop_Count

Scan_Type = robo_scan()
if Scan_Type is 1
robo_forward()
robo_left()
Scan_Type = robo_scan()
if Scan_Type is 12
for Loop_Count in 1,2
robo_forward()
else
for Loop_Count in 1,2
robo_left()
for Loop_Count in 1,2
for Loop_Count in 1,2
robo_forward()
robo_left()
robo_forward()
robo_left()
robo_forward()
else
for Loop_Count in 1,2
robo_forward()
robo_left()
robo_forward()

Statistics:
Time (MS): 11600
Number of sentences: 27
The total number of sentences: 62

S
ShadoWofXaoS 05.05.20

Not currently playing, but I will be very thankful who will tell a universal principle of determining the sides of a regular polygon (in this case an equilateral triangle) when it changes (displacement) in the opposite figure, given the presence/absence data on an initial position. At the moment developed a complex code of many simple functions to solve this problem, but it is, in my opinion, not optimal, also still not functional because of lack of information on interaction with variables of the type array.