Asked by:
Challenge of the Month  March 2018
General discussion

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.Game Challenge
Write a simple stone paper scissors game to play against the computer.
TextWindow Challenge
Write programs to:
 Count the number of vowels and consonants in a sentense.
 Capitalise the first letter of each word in a sentence.
 Scroll a sentence in the TextWindow.
Turtle Interface Challenge
Write an interface GUI (Graphical User Interface) program to input commands for the turtle to move. Perhaps turn, forwards, penup/down etc.
Graphics Challenges
Draw a dart board.
Write a GraphicsWindow program to draw an ailien. It can be any kind of alien, as fantastical as you like.
Maths Challenge
Extended from last month's challenge calculating dice probabilities. Some a bit harder this time, perhaps using random number tests to approximate solutions.
Calculate the probablitiy of:
 Getting a combined score greater than 14 (15 or more) when rolling 4 dice.
 Rolling at least one pair with the same value when rolling 3 dice.
 Getting 4 consecutive numbers when rolling 4 dice.
 Gettng 3 of a kind, 2 of a kind and one other value when rolling 5 dice.
 Getting a combined score less than or equal to 20 using 10 dice.
 Rolling a score of 7 with 2 dice, 6 times in a row.
 Rolling a score of 7 with 2 dice at least 3 times out of 6 rolls.
Do you have an idea for a future challenge? Please post it here!
 Edited by litdevModerator Wednesday, February 28, 2018 5:36 PM
All replies





Hi litdev, I think 4th one in the maths challenge will be:
4. Getting 3 of a kind, 2 of a kind and one other value when rolling 6 dice.
or
4. Getting 3 of a kind and 2 of a kind when rolling 5 dice.
Nonki Takahashi
Possibly badly worded, but there is a subtle difference in that the last (6th) dice cannot be the same as the 3 of a kind or the pair. 
This is my second step for the maths challenge: LVP1960.
This program can calculate following two.
1. 44.3%
5. 0.2%
Nonki Takahashi
 Edited by Nonki TakahashiModerator Thursday, March 15, 2018 4:56 PM 5.

Write a GraphicsWindow program to draw an ailien. VWN806
(Sorry this uses LDextension // LDshapes.addpolygn)
*Now I'm making a shapes editor. It uses LDshapesAddpolygon (Rectangle,Ellipse,triangle,line are made by using LDshapes.addpolygon)
This is made by using the Editor.
 Edited by NaochanONEditor Thursday, March 22, 2018 4:47 AM