Small Basic Monthly Challenges - July 2018

We still have over a week for you to get your challenges in!

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 here so that a discussion can start and 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) Write a program to change the background colour of the GraphicsWindow.  Increase the red, blue or green components by pressing the R, G, B keys.  Reduce the colour components when the Shift key is held down.

2) White a program to draw a classic soccer ball (football in many cultures).

Ball | Kingston

3) Write a program to load an image, then spin, zoom and fade the image using key presses.

Maths Challenge

Wrire a program to recursively sum the digits of a number until there is only one number.

For example the number 1654876 is summed to 1+6+5+4+8+7+6 = 37, which is summed to 3+7 = 10, which is summed to 1+0 = 1.

As a follow-up.  Are reduced sum of digids (1- 9) evenly distributed, equally likely or are some more common for a large number of integers?  Are there any aother patterns or comclusions that you can find?

Game Challenge

Write a simple World Cup penaly shoot-out program.  It could be 2 player or against the computer.

Turtle Challenge

Write a program where the turtle keeps moving towards the mouse position.

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


And big thanks to Small Basic Community Council member, LitDev, for hosting these challenges!