Skip to content

Commit e77938b

Browse files
committed
created inDev folder
1 parent 7ef47a9 commit e77938b

File tree

3 files changed

+139
-0
lines changed

3 files changed

+139
-0
lines changed
0 Bytes
Binary file not shown.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
package org.teachingkidsprogramming.recipes.inDevelopment;
2+
3+
public class SmallBasicHolidayCard
4+
{
5+
//**needs to be translated from the SmallBasic
6+
// Holiday Recipe - Enjoy!
7+
// Set the background to the color of Snow
8+
//
9+
// Make the tortoise move as fast as possible
10+
//
11+
// Tell the program window to call Click (recipe below) when the mouse is clicked
12+
//
13+
//
14+
// ------------- Recipe for Click
15+
//
16+
// If the left mouse button is down
17+
//
18+
// DrawTree(recipe below)
19+
//
20+
// Otherwise,
21+
//
22+
// DrawMerryChristmas(recipe below)
23+
//
24+
// ------------- End of Click recipe
25+
//
26+
//
27+
// ------------- Recipe for DrawMerryChristmas
28+
//
29+
// Play the music for Jingle Bells (Hint:"EEEP4EEEP4EGCDL1E")
30+
//
31+
// Set the font to be 48pt
32+
//
33+
// Set the color of the font to red
34+
//
35+
// Write "Merry Christmas" on the screen at position 150, 150
36+
//
37+
// ------------- End of DrawMerryChristmas recipe
38+
//
39+
// ------------- Recipe for DrawTree
40+
//
41+
// DrawTreeTop(recipe below)
42+
//
43+
// DrawTreeBody(recipe below)
44+
//
45+
// DrawTreeTrunk(recipe below)
46+
//
47+
// ------------- End of DrawTree recipe
48+
//
49+
//
50+
// ------------- Recipe for DrawTreeTop
51+
//
52+
// The current distance is distance of the mouse from the center of the window
53+
//
54+
// The current length is a 20th of the current distance
55+
//
56+
// Change the X position of tortoise to where the mouse is
57+
//
58+
// Change the Y position of tortoise to where the mouse is
59+
//
60+
// Change the tortoise so that it is pointing straight down
61+
//
62+
// Change the color of the line the tortoise draws to forest green
63+
//
64+
// Change the width of the line to the current length divided by 5
65+
//
66+
// Move the tortoise half the current length
67+
//
68+
// Hide the tortoise
69+
//
70+
// Turn the tortoise to the left (90 degrees)
71+
//
72+
// Move the tortoise half of the current length
73+
//
74+
// ------------- End of DrawTreeTop recipe
75+
//
76+
//
77+
// ------------- Recipe for DrawTreeBody
78+
//
79+
// The current turn amount is 175
80+
//
81+
// The current scale is 1.1
82+
//
83+
// Do the following 11 times
84+
//
85+
// Turn the tortoise the current turn amount to the right
86+
//
87+
// Set the current length to the current length times the current scale
88+
//
89+
// Move the tortoise the current length
90+
//
91+
// Turn the tortoise the current turn amount to the left
92+
//
93+
// Set the current length to the current length times the current scale
94+
//
95+
// Move the tortoise the current length
96+
//
97+
// Decrease the current turn amount by 1
98+
//
99+
// Repeat
100+
// ------------- End of DrawTreeBody recipe
101+
//
102+
//
103+
// ------------- Recipe for DrawTreeTrunk
104+
//
105+
// Turn the tortoise 180 degrees to the right
106+
//
107+
// Move the tortoise half of the current length
108+
//
109+
// Change the tortoise so that it is pointing straight down
110+
//
111+
// Change the width of the line to the current length divided by 10
112+
//
113+
// Change the color of the line the tortoise draws to brown
114+
//
115+
// Move the tortoise a quarter the current length
116+
//
117+
// ------------- End of DrawTreeTrunk recipe
118+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.teachingkidsprogramming.recipes.inDevelopment;
2+
3+
public class SmallBasicTicTacToe
4+
{
5+
//**needs to be translated from the SmallBasic**
6+
// Tell TicTacToe to call PlayInFirstEmptySpot (recipe below) when its Xs turn
7+
//
8+
// Start TicTacToe
9+
//
10+
// Recipe for PlayInFirstEmptySpot
11+
//
12+
// Do the following 9 times
13+
//
14+
// if the tictactoe board is empty for current square you trying
15+
//
16+
// Play your piece on that square on the TicTacToe board
17+
//
18+
// and set the current value of i to 10
19+
//
20+
// Repeat
21+
}

0 commit comments

Comments
 (0)