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.
Also post feedback here on the kind of challenges that you want to see more of in the future.
- Write a program to read several pieces of input from the user and decide if each input is a number or not.
- Write a program to calculate the first 20 triangular numbers.
- Write a program to draw a windmill with moving sails.
- Write a program to list all of your Small Basic files.
- Write a program to fire a missile at a target taking into account gravity. The user sets the trajectory angle before firing the missile. Perhaps the target will be moving.
- Write a clone of the game 2048.
Commulty Suggestion (by Nonki)
- Write a PPM (portable pixmap format) bitmap icon (16x16) editor. PPM is a text format which can save RGB color bitmap. The following code is a sample PPM:
Commulty Suggestion (by Jibba Jabba)
- Write a Hangman game
Commulty Suggestion (by Pappa Laupub)
- Write an Mp3 size calculator to calculate one of the values of filesize, playing duration and bitrate from the other both. Eg. enter playing time [sec] or [min] and bitrate to determine an approximate filesize in eg. bytes, kB, MB as result. etc...
- Write a simple program to view the contents of your 'hosts' file and add at least one function you might find useful. eg. look up if a certain address is listed, add a server address to be blocked, etc.
PS: Better don't write to your original hosts file directly, but use eg. hosts_YYMMDD.txt or similar instead and replace it manually later (always backup the original before changes). Furher reading: eg. Hosts
Do you have an idea for a future challenge? Please post it in this forum thread!
Small and Basically Yours,
litdev & Ninja Ed