sticky
Challenges RRS feed

  • 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.

    Over the last few monthly challenges, there have been reducing replies.  This may be due to me struggling to introduce new challenge ideas capturing interest without being repetitive.

    Therefore, for a while I suggest the community at large suggest challenges as we have ideas, hopefully invigorating new perspectives and challenges/discussions.

    So, open forum for any challenges or programming discussions.

    Monday, April 1, 2019 7:57 PM
    Moderator

All replies

  • Challenge 1:

    array[1] = "YouTube"
    array[2] = "Programming"
    array[3] = "You"
    array[4] = "Professional"
    array[5] = "Life"

    Order this array in alphabetical order (A - Z) through algorithms


    Roshan - 8th Grade Student (Age 13) - Learning Learning Python, Machine Learning and C#

    Tuesday, April 2, 2019 3:28 AM
  • Hi Roshan, I once wrote subroutines for text compare.  I'd like to try Challenge 1 with the subroutines.

    GitHubGist Small Basic Text Compare


    Nonki Takahashi

    Thursday, April 4, 2019 10:43 PM
    Moderator
  • This is my solution for the Challenge 1: CSH007-0.

    Life
    Professional
    Programming
    You
    YouTube
    Press any key to continue...

    Nonki Takahashi



    Friday, April 5, 2019 12:18 AM
    Moderator
  • This is my solution for the Challenge 1: CSH007-0.

    Life
    Professional
    Programming
    You
    YouTube
    Press any key to continue...

    Nonki Takahashi



    Nice Work!

    Roshan


    Monday, April 8, 2019 10:44 AM
  • Challenge 2 :

    Get the index of a value in an array.


    Roshan 

    Monday, April 8, 2019 10:48 AM
  • There are several ways you might search for value(s) in an array, like:

    1.) Only show 1st occurance (or all)?

    2.) Case(in)sensible?

    3.) Trimmed value or does value-element contain the searched value etc.

    Applied 1.) and 2.) in SPT104 by boolean flags 'allIdcs' and/or 'valCaseInsens'.

     

    Monday, April 8, 2019 12:09 PM
    Answerer
  • This is my challenge idea:

    Graphics Challenge

    Write a program to draw your favorite pictogram.


    Nonki Takahashi

    Wednesday, April 10, 2019 9:35 AM
    Moderator
  • This is my solution for the graphics challenge: PPT955-0.

    Screen shot of a program Pictogram - Handicapped Accesible Sign


    Nonki Takahashi


    Wednesday, April 17, 2019 8:58 AM
    Moderator
  • This is my solution for the challenge 2:

    arry["Spring"] = "Blue" 
    arry["Summer"] = "Red"
    arry["Autumn"] = "White"
    arry["Winter"] = "Black"
    
    value = "Red"
    Array_GetIndex()
    TextWindow.WriteLine(index)
    
    Sub Array_GetIndex
      ' param arry - array
      ' param value - value
      ' return index - if found
      nArry = Array.GetItemCount(arry)
      indices = Array.GetAllIndices(arry)
      For iArry = 1 To nArry
        index = indices[iArry]
        If arry[index] = value Then
          iArry = nArry ' exit For
        Else
          index = ""
        EndIf
      EndFor
    EndSub


    Nonki Takahashi

    Wednesday, April 17, 2019 9:28 AM
    Moderator
  • This is my idea for super challenge to participate development for SBO v1.0 (C# version).

    SBO v1.0 will be next base of Small Basic.  SBO itself is still for new programming learners.  But after learning SBO programming, you can learn SBO inside to know how your SBO programs run.  Because SBO is open source.  Through SBO source code and the process of developing, you will learn hot technologies such like Blazor about .NET Framework.


    Nonki Takahashi

    Monday, May 27, 2019 6:48 AM
    Moderator
  • This is another idea for Game Challenge:

    Write a program to generate Sudoku puzzle.

    (I made a thread for it.)


    Nonki Takahashi

    Wednesday, June 19, 2019 2:31 PM
    Moderator
  • Next challenge:

    Write 10-line (or less) elegant program!


    Nonki Takahashi

    Wednesday, July 31, 2019 1:19 PM
    Moderator
  • Conversion Challenge:

    Convert a C# or VB.NET game to a Small Basic program.  cf. There are many games in TechNet Wiki.


    Nonki Takahashi

    Sunday, August 4, 2019 1:59 AM
    Moderator
  • Study Challenge

    Study something using Small Basic.  For example, Sudoku Challenge is also Sudoku studying with Small Basic.


    Nonki Takahashi

    Sunday, August 18, 2019 8:18 AM
    Moderator