-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest_room.json
112 lines (112 loc) · 5.26 KB
/
test_room.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"title": "Intro: Programming",
"desc": "In this room, there are some simple programming challenges for you to try.",
"sections": [
{
"title": "Welcome!",
"markdown": "Welcome to Laplace!\n\nLaplace is an open-source, collaborative, and free coding environment for everyone to use. People can join rooms to learn about many topics and try challenges or even make their own rooms themselves.\n\nThis room has a set of very simple programming challenges to test yourself and your knowledge. Feel free to complete them with any of the languages supported, and finish all the challenges to complete this room!\n\nGood luck!",
"type": "info"
},
{
"title": "Hello, world!",
"markdown": "#### **Learning Objectives:**\n##### Learn how to print to the screen!\n##### **Description:**\n##### Hello, world!\n##### Let's start off with a simple Hello, world! program.\n#### **Input Format:**\n##### Your program's output should not change whether it receives any input or not.\n#### **Output Format:**\n###### `Hello, world!`",
"type": "coding",
"coding": {
"checks": [
{
"stdin": "",
"stdout": "Hello, world!"
},
{
"stdin": "abcdefg",
"stdout": "Hello, world!"
},
{
"stdin": "123\n456",
"stdout": "Hello, world!"
}
]
}
},
{
"title": "Calculator",
"markdown": "#### **Learning Objectives:**\n##### Basic arithmetic and if else statements\n##### **Description:**\n##### Hello, world!\n##### BEEP BOOP BEEP BEEP BOOP - Translation: Hey, Im BobBot. I have a test today for my Math class but my math.js file isn't working. I need you to create one for me. Use the word add for addition, sub for subtraction, mul for multiplication, and div for division.\n#### **Sample Input:**\n`23 3 add`\n\n`33 3 sub`\n\n`5 9 mul`\n\n`16 4 div`\n#### **Sample Output:**\n`26`\n\n`30`\n\n`45`\n\n`4`",
"type": "coding",
"coding": {
"checks": [
{
"stdin": "324 432 add",
"stdout": "756"
},
{
"stdin": "14 7 sub",
"stdout": "7"
},
{
"stdin": "1337 7331 mul",
"stdout": "9801547"
},
{
"stdin": "256 16 div",
"stdout": "16"
}
]
}
},
{
"title": "Fibonacci",
"markdown": "#### **Description:**\n#####\tEver heard of the Fibonacci sequence. If you haven't, it looks like this 1, 1, 2, 3, 5, 8, 13, 21 The concept behind this sequence is that your next number is the current number + the previous number. Create a program that gives you the nth term of Fibonacci.\n#### **Sample Input:**\n`0`\n\n`1`\n\n`2`\n\n`3`\n\n`7`\n\n#### **Sample Output:**\n`1`\n\n`1`\n\n`2`\n\n`3`\n\n`21`",
"type": "coding",
"coding": {
"checks": [
{
"stdin": "17",
"stdout": "1597"
},
{
"stdin": "21",
"stdout": "10946"
},
{
"stdin": "34",
"stdout": "5702887"
}
]
}
},
{
"title": "Reverse",
"markdown": "Reverse a string! But, there's a twist - **don't** use brackets ([])!\n\n###### Example input:\n`abcdefg`\n###### Example output:\n`gfedcba`\n\nMake sure to preserve all special characters and capitalization! The autograder will also check for the presence of brackets `[]` in your code, so don't use them!",
"type": "coding",
"coding": {
"checks": [
{
"stdin": "abc",
"stdout": "cba",
"hint": "Are you sure you're reversing the string correctly?"
},
{
"stdin": "ABC DEF",
"stdout": "FED CBA",
"hint": "Are you sure you're preserving special characters and capitalization?"
},
{
"code": "\\[",
"output": "",
"multiline": true,
"fail": true,
"hint": "Your code contains brackets!"
},
{
"code": "\\]",
"output": "",
"multiline": true,
"fail": true,
"hint": "Your code contains brackets!"
}
]
}
}
],
"public": true
}