Thread: Help getting Ideas on Challenging Programes to write

  1. #1
    Registered User
    Join Date
    Oct 2017
    Posts
    36

    Post Help getting Ideas on Challenging Programes to write

    Hello all,

    I am currently learning C programming. Other than the examples giving by the book. I find it difficult coming up with my own ideas to code on other than cheap and easy programs to right.

    I want to come up with programs that are challenging and at a level i can handle.

    If there are ways around this please kindly inform me.

    Thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Google "programming contests"
    There are several sites with thousands of problems for all skill levels, and online checking for your success.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by splitfunc0 View Post
    Hello all,

    I am currently learning C programming. Other than the examples giving by the book. I find it difficult coming up with my own ideas to code on other than cheap and easy programs to right.

    I want to come up with programs that are challenging and at a level i can handle.

    If there are ways around this please kindly inform me.

    Thanks
    find some open source software that is not 100 pages of code, just one that has one main.c or main.cpp and maybe a few other files .

    if it is just contained in a main.c or main.cpp that usually ends up having everything written in the main file. take your time read through it, you might pick up on codding style as well as then try changing it to see how that effects it, modify it and then split it up into different files, then you'll have to, should have to figure out how to pass variables in the functions, as most that write everything in one file main make a lot of it global. you you'll get to figure out a few things alone the way.

    you should find a few challenges in that.

    github or sourcefourge has plenty of open source to pick from.

  4. #4
    Registered User
    Join Date
    Jun 2017
    Posts
    88
    Just a few ideas:

    1) Generate random mazes with a user defined height and width. Try to make it work with both even and odd sizes.

    2) Find every solution to the eight queens puzzle.

    3) Auto generate a solution to the knight's tour with a random knight placement and user defined height and width.

    I like to do some projecteuler sometimes, but there are other flavors of programming challenge sites as well.

  5. #5
    Banned
    Join Date
    Aug 2017
    Posts
    861
    kick the bucket game.
    Where their are two players or more.
    Object of game: to see who can kick the bucket furthest.
    math needed.
    Player draws back leg. speed of kick, angle the foot hits the bucket ( computation is like the club hitting the golf ball, or someone kicking a foot ball.) sets angle the bucket travels.

    the velocity of the kick sets the distance of travel for the bucket.
    Do not forget the angle of travel depending on where the bucket is kicked from.

    Or point of contact determines angle and velocity of bucket to get total distance. Plus
    gravitation against weight of bucket determines drop rate vs distance as well. sniper rules apply.
    bullets drop rate at speed , weight of bullet and gravitational pull, wind direction, and speed gets distance.

    Newton's third law.

    rules of game, kick the bucket in a straight line to get furthest distance.
    If bucket not kicked squarely it goes off onto an angle, therefore distance has just been hindered.
    Winner of course is longest distance kicked in X amount of times. 1 thru whatever.
    Last edited by userxbw; 11-02-2017 at 08:26 AM.

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Writing a simple interpreter can be a lot of fun.
    Start with a calculator that does arithmetic.
    Code:
    (+ 2 3)
    Add variables
    Code:
    (let (a 5) (+ a 5))
    Conditions
    Code:
    (if (x > 5) (+ x 1) (- x 1) )
    Functions

    Code:
    (define  foo (n) (+ n 1))
    (foo 5)
    Recursion?
    Code:
    (define  sum (n) (if (= n 0) (0) (+ n (sum (- n 1)))))
    Congratulations, you have your own Turing complete programming language!

    (Also, you are one simple trick away from LISP.)
    Last edited by manasij7479; 11-03-2017 at 01:04 AM.

  7. #7
    Registered User
    Join Date
    Oct 2017
    Posts
    36
    Yea I find all these interesting means of learning to improve my programming skills. challenges obviously help expand my mindset and thinking capacity. I once read about readying other peoples code or looking for code base that is within 50 -- 100 line and immersing myself for a while on them until i understand what is happening or how the whole program fits together. I have tried all these but i soon get discouraged i feel its taking too long for me to understand. I just keep learning and hope that someday i will have a clearer understanding.

  8. #8
    Registered User
    Join Date
    Nov 2017
    Posts
    3
    I agree that there are a lot of ways to improve or learn programming skills. Try to check about " Think Like a Programmer(Anton Spraul)". You will learn a lot about the challenging aspects of programming and basic code structures.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 01-29-2014, 02:40 PM
  2. Most challenging field
    By herWter in forum Tech Board
    Replies: 3
    Last Post: 07-24-2008, 03:13 PM
  3. Challenging Problem
    By gamx in forum C Programming
    Replies: 1
    Last Post: 05-26-2008, 10:59 AM
  4. Challenging question.
    By hhhmortal in forum C Programming
    Replies: 2
    Last Post: 12-06-2007, 03:47 PM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM

Tags for this Thread