Partilhar via


September 2018 - Small Basic Challenges: Ellipses, Snail Shells, Anemones, & More!

These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic.  Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN!

Please post your solutions / partial solutions / questions / feedback etc. into this thread that will remain 'sticky' for the month.  The only rule is that your solution must use standard Small Basic methods (no extensions).

It would be good if people could post their problems with these challenges so that a discussion can start so that everyone can learn from each other.

We may extend these challenges over into a second month if solutions and questions are still coming in.

Graphics Challenges 1

For these challenges DON'T use the Shapes or Controls methods:

1] Draw an ellipse with the turtle.

2] Draw a filled ellispse with the turtle.

3] Draw a button with mouse over that changes the button color, and mouse click events.

Graphics Challenges 2

Using any Small Basic methods:

1] Make a textbox that copies the text typed in it to the GrapicsWindow and resets the textbox to be blank when Return is pressed.

2] Draw a snail shell, starfish or anemone.

Text Challenge

1] Use the TextWindow to input a number and say if it is odd or even.

2] Use the TextWindow to input the user's name and then hold a simple conversation, asking questions.  Try to use the user replies to adapt the conversation.

For example:

What is you name?

Fred

Hello Fred, what is your favorite color?

red

I saw a red ballon today.  Do you have any red clothes?

...

Physics challenge

1] Make a Newton's cradle.

Do you have an idea or a future challenge? Please post it here!

LitDev & Ninja Ed