Small Basic Monthly Challenges – October & November

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.

Graphics Challenge

  • Draw regular 5, 7 and 9 pointed stars.


Physics Challenge

  • Crete an animation of Newton's cradle.

In a Newton's cradle, when the ball on the end strikes the others it ...

Controls Challenge

Create some additional controls in the GraphicsWindow without using extensions.

  • A read-only textbox
  • Radio buttons
  • A password entry textbox
  • Create your own button with mouse-over and button press events, not using the button control, this way your button can have fancy colour or other effects
  • Any other controls you fancy


Text Challenge

  • Create a program to draw a histogram of the frequency of letters in a text file.


Extension Challenge

  • Create your own extension in C# or VB to calculate the prime factors of a number.


Game Challenge

  • Write a simple 'platform game', where a player jumps between platforms.


Platform Game Tiles By combining groups of tiles

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


Small and Basically yours,

   - LitDev & Ninja Ed 

Comments (4)
  1. JetFire3201 says:

    can we do the text challenge but without a text file? can we just use a variable to hold the sentence or letters?

  2. JetFire3201 says:

    text1 = "my name is john"

    text1 = Text.ConvertToLowerCase(text1)

    pos = Text.GetLength(text1)

    For num = 0 To pos step 1

     letter[i] = Text.GetSubText(text1, num,1)

     If letter[i] = "a" Then

       a= a + 1

     ElseIf letter[i] = "b" then

       b= b +1

     elseIf letter[i] = "c" Then

       c = c + 1

     ElseIf letter[i] = "d" then

       d= d +1

     elseIf letter[i] = "e" Then

       e= e + 1

     ElseIf letter[i] = "f" then

       f= f +1

     ElseIf letter[i] = "g" Then

       g= g + 1

     ElseIf letter[i] =  "h" then

       h= h +1

     ElseIf letter[i] = "i" Then

       i= i + 1

     ElseIf letter[i] = "j" then

       j= j +1

     ElseIf letter[i] = "k" Then

       k= k + 1

     ElseIf letter[i] = "l" then

       l= l +1

     ElseIf letter[i] = "m" Then

       m= m + 1

     ElseIf letter[i] = "n" then

       n= n +1

     ElseIf letter[i] = "o" Then

       o= o + 1

     ElseIf letter[i] = "p" then

       p= p +1

      ElseIf letter[i] = "q" Then

       q= q + 1

     ElseIf letter[i] = "r" then

       r= r +1

      ElseIf letter[i] = "s" Then

       s= s + 1

     ElseIf letter[i] = "t" then

       t= t +1

      ElseIf letter[i] = "u" Then

       u= u + 1

     ElseIf letter[i] = "v" then

       v= v +1

    ElseIf letter[i] = "w" Then

       w= w + 1

     ElseIf letter[i] = "x" then

       x= x +1

      ElseIf letter[i] = "y" Then

       y= y + 1

     ElseIf letter[i] = "z" then

       z= z +1



    TextWindow.WriteLine("a=" + a)

    TextWindow.WriteLine("b=" +b)

    TextWindow.WriteLine("c=" +c)

    TextWindow.WriteLine("d=" +d)

    TextWindow.WriteLine("e=" +e)

    TextWindow.WriteLine("f=" +f)

    TextWindow.WriteLine("g=" +g)

    TextWindow.WriteLine("h=" +h)

    TextWindow.WriteLine("i=" +j)

    TextWindow.WriteLine("j=" +k)

    TextWindow.WriteLine("k=" +l)

    TextWindow.WriteLine("l=" +m)

    TextWindow.WriteLine("m=" +n)

    TextWindow.WriteLine("n=" +o)

    TextWindow.WriteLine("o=" +p)

    TextWindow.WriteLine("q=" +q)

    TextWindow.WriteLine("r=" +r)

    TextWindow.WriteLine("s=" +s)

    TextWindow.WriteLine("t=" +t)

    TextWindow.WriteLine("u=" +u)

    TextWindow.WriteLine("v=" +v)

    TextWindow.WriteLine("w=" +w)

    TextWindow.WriteLine("x=" +x)

    TextWindow.WriteLine("y=" +y)

    TextWindow.WriteLine("z=" +z)

  3. litdev says:

    Can we do the text challenge but without a text file? can we just use a variable to hold the sentence or letters?

    Yes or course – the challenges are just starting ideas.

    Post sulutions, discussion, questions etc to the forum.

  4. Thanks JetFire! Great job on that!

    As LitDev mentions, please also post your solutions in the forum thread so we can discuss it and answer any questions:…/challenge-of-the-month-octobernovember-2015


Comments are closed.

Skip to main content