Small Basic Challenges for May 2015 – Puzzles, Money, Capatcha, Files, & Dragons! Oh My!!!

Thanks to litdev for leading another rousing month of challenges!


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 on the kind of challenges that you want to see more of in the future.



File Challenge

The following file operations are not present in Small Basic, can you write subroutines to perform these operations?

WARNING - Please be super careful testing your code not to delete anything accidentally - work only in a new folder you create for your tests.

  • FileExist
  • DirectoryExist
  • CopyDirectory
  • FileRename
  • DirectoryRename


Graphical Challenge

  • Write a program to 'click and drag' a shape in the GraphicsWindow.
  • Perhaps then use this code to create a simple game where the player positions objects on the screen to win, perhaps like a small jigsaw puzzle. 


Math Challenge

  • Can you help write some simple programs to help test young students arithmetic - lots of colour, interaction etc.  See this thread for some reference.


Capatcha Challenge

  • Write a capatcha program.  This is anything that a person could answer, but a computer couldn't.  It can be a picture with hidden text or many other questions like a simple math sum etc.


Text Challengs

  • Write a TextWindow program to get the computer to play Fiz Buz.  Numbers are output in order 1, 2, 3 etc and every number that is divisble by 3 is relaced by 'Fiz' and 'Buz' for 5 and 'FizBuz' if both apply.  Perhaps also try some other variants.
  • HINT: Check out the Math.Remainder method.


Game Challenge

  • Write a simple poker or other card game.
  • Include the computer as a player withh AI if possible.


Community Suggestion (By Ed Price)

  • Write a Dragon Game. It can be any game where you try to slay a dragon, whether it is a text-based game, graphical, or a combination. You could also make the dragon the hero.


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


Check out all the amazing submissions:


Small and Basically yours,

   - Ninja Ed

Comments (7)

  1. anonymouscommenter says:

    mouse motion analysis tool:VMR034

    calcualtes mouse speed and makes trend of mouse gestures

    graph shows mouse acceleration and directional changes in 1/100 of secs (interval 10 ms)

    constructed as basetool for gesture handling

    usage: press mouse LB and make a simple gesture. after releasing button is displayed recorded line

    interpolated line and graph analyse. use mouse RB to clear screen


  2. anonymouscommenter says:

    a space odissey inspired and powered by nonki's shapes)): WHK493

    still work in progress…

  3. Nice! That's great!

    Note that you'll need the LitDev extension to run these.


  4. anonymouscommenter says:


    a touch of maths and art: RVW931

    ripples with "chiaroscuro" coloring

  5. anonymouscommenter says:

    Eurosong is coming, some songs info: MNZ671

  6. anonymouscommenter says:

    and now the song finalist for saturday: PWQ878

Skip to main content