Skip to content

Commit c95c474

Browse files
committed
Adding configuration for "Walk on a die".
1 parent f8863e1 commit c95c474

18 files changed

+107
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
for ($i = 0; $i < 3; $i++)
2+
{
3+
$line = stream_get_line($stdin, 6 + 1, "\n");// One line out of three in the string describing the starting position.
4+
}
5+
$commands = stream_get_line($stdin, 12 + 1, "\n");// The sequence of ULDR-characters describing the steps to perform.
6+
7+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
8+
9+
10+
// The number on the side you end up on after having performed `commands`.
11+
echo("number\n");
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"namespace": "Community\\Training\\Easy\\WalkOnADie",
3+
"name": "Walk on a die",
4+
"group": "walkOnADie",
5+
"link": "https://www.codingame.com/ide/puzzle/walk-on-a-die",
6+
"tests": [
7+
{
8+
"name": "Test 1",
9+
"group": "test1",
10+
"method": "Test1",
11+
"file": "01 - test 1.txt"
12+
},
13+
{
14+
"name": "Test 2",
15+
"group": "test2",
16+
"method": "Test2",
17+
"file": "02 - test 2.txt"
18+
},
19+
{
20+
"name": "Test 3",
21+
"group": "test3",
22+
"method": "Test3",
23+
"file": "03 - test 3.txt"
24+
},
25+
{
26+
"name": "Test 4",
27+
"group": "test4",
28+
"method": "Test4",
29+
"file": "04 - test 4.txt"
30+
},
31+
{
32+
"name": "Test 5",
33+
"group": "test5",
34+
"method": "Test5",
35+
"file": "05 - test 5.txt"
36+
},
37+
{
38+
"name": "Test 6",
39+
"group": "test6",
40+
"method": "Test6",
41+
"file": "06 - test 6.txt"
42+
},
43+
{
44+
"name": "Test 7",
45+
"group": "test7",
46+
"method": "Test7",
47+
"file": "07 - test 7.txt"
48+
},
49+
{
50+
"name": "Test 8",
51+
"group": "test8",
52+
"method": "Test8",
53+
"file": "08 - test 8.txt"
54+
}
55+
]
56+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
2354
3+
6
4+
DLU
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2
2+
3146
3+
5
4+
U
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
5
2+
6413
3+
2
4+
L
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
6
2+
4532
3+
1
4+
UU
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2
2+
1463
3+
5
4+
LL
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
5423
3+
6
4+
ULRD
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
6
2+
5324
3+
1
4+
ULDR
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
4
2+
2156
3+
3
4+
UUURRLDDDLLU

0 commit comments

Comments
 (0)