-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
177 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
test/repos/bootcamp_content/projects/drawing/exercises/penguin/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"idx": 4, | ||
"title": "Penguin", | ||
"description": "Make the penguin symmetrical", | ||
"project_type": "draw", | ||
"level": 1, | ||
"concepts": [], | ||
"tests_type": "state", | ||
"readonly_ranges": [], | ||
"tasks": [ | ||
{ | ||
"name": "Draw the scene", | ||
"tests": [ | ||
{ | ||
"slug": "draw-scence", | ||
"name": "Make the penguin symmetrical.", | ||
"description_html": "Fix all the TODO comments to make the penguin symmetrical.", | ||
"function": "main", | ||
"checks": [ | ||
{ | ||
"name": "getRectangleAt(0, 0, 100, 100)", | ||
"matcher": "toExist", | ||
"error_html": "The sky has gone wrong." | ||
}, | ||
{ | ||
"name": "getRectangleAt(0, 70, 100, 30)", | ||
"matcher": "toExist", | ||
"error_html": "The ground has gone wrong." | ||
}, | ||
{ | ||
"name": "getEllipseAt(28, 55, 10, 25)", | ||
"matcher": "toExist", | ||
"error_html": "The left wing doesn't seem right." | ||
}, | ||
{ | ||
"name": "getEllipseAt(72, 55, 10, 25)", | ||
"matcher": "toExist", | ||
"error_html": "The right wing doesn't seem right." | ||
}, | ||
{ | ||
"name": "getEllipseAt(50, 53, 25, 40)", | ||
"matcher": "toExist", | ||
"error_html": "The outer body has gone wrong." | ||
}, | ||
{ | ||
"name": "getEllipseAt(50, 50, 21, 39)", | ||
"matcher": "toExist", | ||
"error_html": "The inner body has gone wrong." | ||
}, | ||
{ | ||
"name": "getCircleAt(50, 31, 23)", | ||
"matcher": "toExist", | ||
"error_html": "The head has gone wrong." | ||
}, | ||
{ | ||
"name": "getEllipseAt(41, 32, 11, 14)", | ||
"matcher": "toExist", | ||
"error_html": "The left side of the face doesn't look right." | ||
}, | ||
{ | ||
"name": "getEllipseAt(59, 32, 11, 14)", | ||
"matcher": "toExist", | ||
"error_html": "The right side of the face doesn't look right." | ||
}, | ||
{ | ||
"name": "getEllipseAt(50, 40, 16, 11)", | ||
"matcher": "toExist", | ||
"error_html": "The lower part of the face doesn't look right." | ||
}, | ||
{ | ||
"name": "getCircleAt(42, 33, 3)", | ||
"matcher": "toExist", | ||
"error_html": "The left eye seems off." | ||
}, | ||
{ | ||
"name": "getCircleAt(43, 34, 1)", | ||
"matcher": "toExist", | ||
"error_html": "The left iris seems off." | ||
}, | ||
{ | ||
"name": "getCircleAt(58, 33, 3)", | ||
"matcher": "toExist", | ||
"error_html": "The right eye seems off." | ||
}, | ||
{ | ||
"name": "getCircleAt(57, 34, 1)", | ||
"matcher": "toExist", | ||
"error_html": "The right iris seems off." | ||
}, | ||
{ | ||
"name": "getEllipseAt(40, 93, 7, 4)", | ||
"matcher": "toExist", | ||
"error_html": "The left foot's gone astray." | ||
}, | ||
{ | ||
"name": "getEllipseAt(60, 93, 7, 4)", | ||
"matcher": "toExist", | ||
"error_html": "The right foot's not right." | ||
}, | ||
{ | ||
"name": "getTriangleAt(46, 38, 54, 38, 50, 47)", | ||
"matcher": "toExist", | ||
"error_html": "The nose isn't right." | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
43 changes: 43 additions & 0 deletions
43
test/repos/bootcamp_content/projects/drawing/exercises/penguin/example.jiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Light blue background | ||
fill_color_hex("#ADD8E6") | ||
rectangle(0, 0, 100, 100) | ||
|
||
// Ground | ||
fill_color_hex("#ffffff") // Ice ground | ||
rectangle(0, 70, 100, 30) // Ice ground | ||
|
||
// Penguin wings | ||
fill_color_hex("#000000") // Black | ||
ellipse(28, 55, 10, 25) // Left wing | ||
ellipse(72, 55, 10, 25) // Right wing | ||
|
||
// Penguin body | ||
fill_color_hex("#000000") // Black for the body | ||
ellipse(50, 53, 25, 40) // Outer body (oval shape) | ||
fill_color_hex("#ffffff") // White for the belly | ||
ellipse(50, 50, 21, 39) // Inner belly (oval shape) | ||
|
||
// Penguin head | ||
fill_color_hex("#000000") // Black | ||
circle(50, 31, 23) // Head (circle) | ||
fill_color_hex("#ffffff") // White for the face | ||
ellipse(41, 32, 11, 14) // Left part of the face | ||
ellipse(59, 32, 11, 14) // Right part of the face | ||
ellipse(50, 40, 16, 11) // Lower part of the face | ||
|
||
// Penguin eyes | ||
fill_color_hex("#000000") // Black | ||
circle(42, 33, 3) // Left eye | ||
fill_color_hex("#ffffff") // White | ||
circle(43, 34, 1) // Left iris | ||
|
||
fill_color_hex("#000000") // Black | ||
circle(58, 33, 3) // Right eye | ||
fill_color_hex("#ffffff") // White | ||
circle(57, 34, 1) // Right iris | ||
|
||
// Feet | ||
fill_color_hex("#FFA500") | ||
ellipse(40, 93, 7, 4) | ||
ellipse(60, 93, 7, 4) | ||
triangle(46, 38, 54, 38, 50, 47) |
3 changes: 3 additions & 0 deletions
3
test/repos/bootcamp_content/projects/drawing/exercises/penguin/introduction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Introduction | ||
|
||
This is fun! |
1 change: 1 addition & 0 deletions
1
test/repos/bootcamp_content/projects/drawing/exercises/penguin/stub.jiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hello |
5 changes: 5 additions & 0 deletions
5
test/repos/bootcamp_content/projects/drawing/exercises/penguin/task-1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Follow the `TODO` comments to make the penguin symmetrical. | ||
|
||
As you get each bit right, tidy up the comments by removing the `TODO` and replacing it with a nicer comment. | ||
|
||
Use the "Check Scenarios" button regularly, and have fun! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters