• Forum
  • Lounge
  • simple projects to help learn how to cod

 
simple projects to help learn how to code

Jun 10, 2016 at 1:56am
One of the hardest thing about learning how to program (or teaching someone how to program) is having simple, clear projects that can be completed and are a bit more fun than "print Hello world 10 times using a loop" or "Display all of the employees in the Northwinds database", and are also sufficiently complex to actually use the features of a programming language (event driven vs. procedural, etc).

So... how about some projects/ideas for someone to work on to help them learn to code. Ideally should be very cross platform as well.

One of my favorite, and I've used it for learning TRS-80 BASIC, Turbo Pascal, Visual Basic, and Java, and for teaching VB and PHP is "Create a deck of cards, shuffle them, deal a hand for poker (5 or 7 card stud) and determine what hand was drawn. Extend to drawing 2 hands and determining which hand would win." And of course it can be further extended to allow asking for more cards (5 card draw) or changing it to Texas Hold 'Em or whatever.

Jun 10, 2016 at 3:34pm
closed account (E0p9LyTq)
Program C++ Games with Microsoft Visual C++ - http://www.truancyfactory.com/tutorials/games/cpp01.html
Jun 11, 2016 at 9:52am
Things like guessing games I think.

- Guess my number
- Word jumble
- Tic-Tac-Toe
- Hangman
- Battleship

etc..
Jun 12, 2016 at 4:30am
What I did was recreate some simple games like Pong, Pocket Tanks and some web game.

There's also ProjectEuler.net (https://projecteuler.net/archives), you solve mathematical problems, often these questions end up teaching you things about algorithms, optimization and problem solving skills. It even has a problem very similar to what you said https://projecteuler.net/problem=54
Jun 13, 2016 at 7:40pm
ProjectEuler looks awesome!
Jun 14, 2016 at 1:36pm
OK )
Jun 17, 2016 at 8:44pm
A dungeon crawl game might be fun. Where they have to print out a map and the user navigates to the end. It also could be enhanced by adding enemies, traps, chests, other areas, etc.
Jun 17, 2016 at 9:29pm
Do you have any sites, that provides practice exercises for c++?
Jun 18, 2016 at 4:17am
I don't recommend going for specific "C++ exercises", go for general problems like things that have already been mentioned in this thread.
Jun 18, 2016 at 8:02am
Well every programming book has exercises that could be used to get one familiar with aspects of the language.

Then you have actual applications that would help build their skills and abilities to break down ideas and turn them into code.

https://projecteuler.net/

Then it also depends on interests. Interest in game development? Make the list below. Like GUIs? Learn to make your own GUI library. Interested in music/sound? Make sound manipulation programs or sound libraries to load, play, and manipulate sound playback.

Number Guessing
Tic Tac Toe
Hangman
Pong
Worm
Breakout
Missile Command
Space Invaders
Asteroids
Tetris
Pac-Man
Ikari Warriors
Super Mario Bros
Legend of Zelda
Topic archived. No new replies allowed.