I have been learning Programming since the last year. I know C, C++ Java. I want to code some short but interesting programs, which would help me.
Anything like magic odd square thing?

Dani AI

Generated

Quick follow-up that builds on ideas from , , and with fresh, small projects that teach concrete skills (parsing, I/O, concurrency, algorithm design) and a short plan for each. Each item is chosen to be doable in a weekend or two while producing something testable and satisfying in C, C++ or Java.

  • Chip‑8 emulator — implement the 4K memory map, 16 8‑bit registers, program counter, timers, a 64x32 monochrome framebuffer and the fetch/decode/execute loop. Start by supporting a handful of opcodes (display, jump, call, arithmetic), then add input and timers. Common pitfalls: opcode decoding mistakes, endianness and timer/tick timing. (Reference: CHIP‑8 on Wikipedia.)

  • Sudoku solver + generator — write a backtracking solver with a Most‑Restricted‑Variable heuristic, verify correctness with unit tests, then make a generator that removes numbers while checking for unique solutions. For an advanced step, replace backtracking with Algorithm X / Dancing Links for speed and to learn exact cover formulations. (See Dancing Links on Wikipedia.)

  • Simple multi‑client chat server — design a text protocol (length prefix or newline delimiter), implement a server using select/poll (or Java NIO) or a small thread‑pool, handle partial reads/writes and clean disconnects. Test with telnet/netcat and add simple rate limiting and max message sizes to avoid resource exhaustion. For background reading try Beej’s network guide: http://beej.us/guide/bgnet/

  • Expression evaluator / REPL — build a tokenizer, use the shunting‑yard algorithm to create RPN or an AST, evaluate with support for variables and simple functions. This teaches parsing, operator precedence, and testing.

Keep scope tiny: implement core logic first, add tests that assert correctness, use version control, log liberally and incrementally tackle one feature at a time. These projects complement the robot, language and recorder ideas already mentioned in the thread while exposing different, practical parts of real programs.

Recommended Answers

All 9 Replies

Try Robocode! It's a fun way to practice your programming skills (in JAVA) it's addicting and you can even join competitions to battle against the robots develop by other users.

http://robocode.sourceforge.net

I have been implementing a learning algorithm with my robots :)

Thanks!
I liked Robocode. Anything else like it?

A Brainfucck interpreter. (I misspelled the name of the language btw.)

An enjoyable one, make an activity recorder, so it records your mouse and keyboard activity and plays it back at different speeds. I did it once (attached), might be an idea for you.

Or were you looking for something more graphical / fun.. :P

An enjoyable one, make an activity recorder, so it records your mouse and keyboard activity and plays it back at different speeds. I did it once (attached), might be an idea for you.

Or were you looking for something more graphical / fun.. :P

hey nice program!
few days ago i had tried JitBit recorder, which does the same thing and loved it. But your program is even better, simple and nice.
How can can i make it?
Can i use C for it?
Thanks!

I'd supply you with the source code, but that would take away the fun in it, wouldn't it? :icon_cheesygrin:
I used C++ to make this, there's 4 things I used most:

  • Threads
  • Vectors
  • Windows Hooks
  • Timers, mainly the Sleep function

But if you want the code, I'll give you it.

I'd supply you with the source code, but that would take away the fun in it, wouldn't it? :icon_cheesygrin:
I used C++ to make this, there's 4 things I used most:

  • Threads
  • Vectors
  • Windows Hooks
  • Timers, mainly the Sleep function

But if you want the code, I'll give you it.

haha..
I'm a newbie with application building.. but I wouldn't like to copy from the source.
I will definitely try it out!

I'm a newbie with application building.

In that case, here's the project, this is way past your level of coding :icon_lol: You can still give it a shot, but the code's there if you want it.

In that case, here's the project, this is way past your level of coding :icon_lol: You can still give it a shot, but the code's there if you want it.

great thanks! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.