locked
Challenge of the Month - August 2015 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.

    Also post feedback on the kind of challenges that you want to see more of in the future.

    Small Challenges

    • Write a program to count the number of clicks in a GraphicsWindow program a user makes and the total distance the mouse moves
    • Write a program to input a user's name and address, then display it in a fancy way in the TextWindow using the TextWindow methods, BackgroundColor, ForegroundColor, CursorLeft and CursorTop.

    Graphics Challenges

    • Make an animation of rain, snow or wind that can be used with another game to make bacgrounds more interesting
    • Draw a shark swimming
    • Create some emoji for Small Basic


    shark_icon.jpg

    Text Challenges

    • Write a program to correct the capitalisation of any occurances of a set of keywords.  For example replace for with For or ENDSUB with EndSub.
    • Use this program to write a larger program which can define a set of keywords and apply the corrections to a file.  This could then be used to format a Small Basic program file.
    • You could also have an option to convert all other (non-keyword) text into lower or upper case.


    Physics Challenge

    • Create an animation of a missile being fired (parabola trajectory).  Its landing position will depend on the angle it is fired up at.
    • This could be used in the Tank Game challenge.
    • Here is a previous question on this.


    Community Suggestion (By Nonki)

    • Write a program to edit following Wiki markup.  These markup should be formatted like this.
      *bold*
      _italics_
      +underline+
      ! Heading 1
      !! Heading 2
      !!! Heading 3
      * Bullet List
      ** Bullet List 2
      # Number List
      ## Number List 2
      [image:Turtle.png]
      ||Table Heading 1||Table Heading 2||
      |Row 1 - Cell 1|Row 1 - Cell 2|
      |Row 2 - Cell 1|Row 2 - Cell 2|
      ----


    Community Suggestion (By Jibba Jabba)

    • Inspired from Zock, setup and write a Tank Game
    • The image is from this blog post featuring a tank game by Zock77

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

    Saturday, August 1, 2015 9:35 AM

All replies

  • Great challenge idea from Jibba Jabba! I love Zock's tank game! I spent way too much time playing it!

    Published a blog post about this:

    Small Basic Challenges of the Month - August 2015


    Ed Price, Azure & Power BI Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!


    Sunday, August 2, 2015 6:59 PM
  • I just did the 1st Small challenge keeping in mind the Mouse.Mouse and GW.Mouse issues discussed in this article: blog

    There could be qualitative approaches to staying safe of the issues discussed.

    e.g. you could shake the GW and use a differential of GW.Mouse to confirm if the cursor is on the GW.

    I tried to tie up the way the GW.Mouse works by using GW members and a virtual cursor.

    I also confined my response to the GW.MouseMove event inside a condition that uses Mouse.MouseX to signal a mouseMove.

    WKC378-0      local only

    https://social.msdn.microsoft.com/Forums/getfile/711807


    • Edited by Jibba j Sunday, August 23, 2015 9:16 AM forgot custom cursor
    Tuesday, August 4, 2015 7:59 AM
  • Nothing that goes beyond answering the problem and nothing that does little to solve it, so all who view may get a simple understanding and viewing.

    Heres the import ID code: BFL283

    And heres the link: http://smallbasic.com/program/?BFL283

    Wednesday, August 5, 2015 4:00 PM
  • In order to show steps solving community suggestion by Nonki (Wiki editor), I uploaded the first program to CodePlex.

    http://smallwikieditor.codeplex.com/

    You can also see my first step as NVD371-2.  This is just a demo version.

    Screen shot of a program Small Wiki Editor 0.2a


    Nonki Takahashi


    Friday, August 7, 2015 3:07 AM
  • There is my first step of graphics challenge: PWZ514

    Only Rain :D

    Edit: It's very slow for unknown reason. If anyone knows, plz tell me! :D
    Thursday, August 20, 2015 6:16 PM
  • POSB

    Try adding less shapes.

    Here's a sample: http://smallbasic.com/program/?BLK714

    Friday, August 21, 2015 2:48 AM
  • Here's the rain drops added to the BIG CHALLENGE:

    http://smallbasic.com/program/?VTD423-1

    *RAIN DANCE*

     Here's how it looks embedded in a website. Some of the GUI needs updating for Silverlight.

    • Edited by Jibba j Monday, August 24, 2015 11:09 PM
    Friday, August 21, 2015 10:36 AM
  • How about that: QWC600

    *Improved Rain Drops*

    *Improved Coding Skills*

    *Every Thing is improved :D*

    *I really don't know what does Improved mean :D*


    Saturday, August 22, 2015 10:49 AM
  • Nice result POSB

    Improved: you made it more to your liking.

    Improved Coding Skills: more to your liking. Maybe able to do more of the coding that you want to do.

    Saturday, August 22, 2015 11:10 AM
  • Nice result POSB

    Improved: you made it more to your liking.

    Improved Coding Skills: more to your liking. Maybe able to do more of the coding that you want to do.

    Thank You Jibba Jabba :D

    I learned know and I Improved my vocabulary :D

    And I want to said that I add something to my skills and little change to code :D
    Saturday, August 22, 2015 6:19 PM
  • Graphics Challenges Draw     a shark swimming   BFQ990

    http://smallbasic.com/smallbasic.com/program/?BFQ990

    Sunday, August 23, 2015 4:57 AM
    Answerer
  • Hey Naochan good swimming shark. The sardines are a nice touch.
    Sunday, August 23, 2015 8:55 AM
  • Hey Naochan good swimming shark. The sardines are a nice touch.

    JibbaJabba ,  Thank you.
    Sunday, August 23, 2015 10:08 AM
    Answerer
  • Hi Naochan could I collaborate with you a bit by adding a gradient background to your swimming shark?

    Then I'd upload it here and see what you think?

    Sunday, August 23, 2015 9:39 PM
  • Hi Naochan could I collaborate with you a bit by adding a gradient background to your swimming shark?

    Then I'd upload it here and see what you think?

    Yes, of course no problem.
    Sunday, August 23, 2015 11:18 PM
    Answerer
  • Thanks NaochanON

    Here's the add-in: http://smallbasic.com/program/?NBL543-3

    I have an issue where the browser object wont run when embedded in my website.

    i.e. Runs in SB browser but not mine.

    Does anyone know what might cause this?

    Monday, August 24, 2015 10:58 PM
  • Thanks NaochanON

    Here's the add-in: http://smallbasic.com/program/?NBL543-3

       Nice "night sea" image! 

    Tuesday, August 25, 2015 2:30 AM
    Answerer
  • recycler animation

    RTR300

    Wednesday, August 26, 2015 4:33 AM
  • PMX209

    added/changed:

    • 2 or more sharks (var n)
    • fast bubbles
    • random sardines motion - more natural

    uses LD xtension - LDfastshapes for bubbles
    • Edited by Tryhest Wednesday, August 26, 2015 6:04 AM
    Wednesday, August 26, 2015 6:03 AM
  • PMX209

    added/changed:

    • 2 or more sharks (var n)
    • fast bubbles
    • random sardines motion - more natural

    uses LD xtension - LDfastshapes for bubbles
         Nice!   edited   PMX209-0
    Wednesday, August 26, 2015 6:59 AM
    Answerer
  • Good idea bringing in fastshapes for this one I reckon Tryhest. I like how you did the recycler.
    Wednesday, August 26, 2015 9:25 PM
  • Thanks NateO, good sample.
    Thursday, August 27, 2015 5:43 AM