Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Beginner C project

Name: wat !QqL8nX9URE 2008-09-26 10:59

I've been studying C for a couple months now, and now I want to start on a small project that'll keep me busy for a few weeks or so. What should I start on?

Name: Anonymous 2008-09-26 11:03

Scheme interpreter/compiler.

Name: Anonymous 2008-09-26 11:04

make a hentai game.

Name: Anonymous 2008-09-26 11:04

Haskell compiler.

Name: wat !QqL8nX9URE 2008-09-26 11:15

... :<

Name: Anonymous 2008-09-26 12:09

simulate the lhc and destroy the internets

Name: Anonymous 2008-09-26 14:19

Name: Anonymous 2008-09-26 14:46

Anonix ed

Name: Anonymous 2008-09-26 21:30

An "Hello World" that also prints the TIME.

Name: Anonymous 2008-09-26 21:32

>>9
and checks if the user has any new mail

Name: Anonymous 2008-09-26 22:11

>>10
And downloads prons from the Internets

Name: Anonymous 2008-09-26 22:30

>>9
I prefer Newsweek.

Name: Anonymous 2008-09-26 22:55

>>11
I prefer Newsweek.

Name: Anonymous 2008-09-26 23:40

>>14
I prefer Newsweek.

Name: Anonymous 2008-09-27 0:14

>>16
You prefer Newsweek?

Name: Anonymous 2008-09-27 2:46

>>17
Yes, I do.

Name: Anonymous 2008-09-27 11:29

>>16 hax my anus

Name: wat !QqL8nX9URE 2008-10-01 20:57

Thanks for nothing, /prog/.

Name: Anonymous 2008-10-01 21:01

No problem, /fag/

Name: Anonymous 2008-10-01 21:05

Make a very simple game with SDL

Name: Anonymous 2008-10-01 21:11

>>18-19
s/prog/fag/

Name: Anonymous 2008-10-01 21:39

write a pair of interactive & representative genitalia as in
http://dis.4chan.org/read/prog/1220887396/

Name: Anonymous 2008-10-01 22:38

Write an reverse-Polish notation calculator that compiles and goes through Valgrind without any errors. Just for fun, along with a stack, make it have a stack of stacks so the user can keep a history of states of the stack.

Name: Anonymous 2008-10-01 22:43

How about a factorial calculator

Name: Anonymous 2008-10-01 22:43

hax my anus

Name: Anonymous 2008-10-01 23:23

write a GCI text board

Name: Anonymous 2008-10-02 10:14

Read SICP

Name: Anonymous 2008-10-03 18:36

>>2 and >>20 were about the only serious replies.

Name: Anonymous 2008-10-03 20:28

>>1
A rogue-like.

Name: Anonymous 2008-10-04 7:02

>>2: 8/10
>>3: 2/10
>>4: 0/10
>>8: 6/10
>>9: 0/10
>>10: 2/10
>>20: 9/10
>>22: 4/10
>>24: 0/10
>>26: 5/10
>>29: 10/10

>>27: 10/10

Name: Anonymous 2008-10-04 7:04

>>30
I assume those are troll ratings?  A new programmer is not going to enjoy programming a roguelike, it's a monumental task even for the most experienced of programmers.

Name: Anonymous 2008-10-04 7:08

>>31
Those are good-idea ratings. A roguelike will keep him entertained and force him to learn all about data structures. He doesn't have to write the ultimate Angband clone with randomly generated towns, 80 monster classes and 50 character attributes. I agree that writing a good roguelike is a monumental task, but the monumental bit comes from the balance and the monster, item and spell collections part, not from the programming part.

Name: Anonymous 2008-10-04 7:17

>>32
Roguelikes are prone to overengineering:  Just consider all the modifiers you want for equipment!  There's a million ways to do it with objects and XML and Enterprise-grade shit;  most successful roguelikes have it more or less hard coded.

Sure, dungeon generation, path finding, etc. is fun and good for learning, but that's the easy part.

Name: Anonymous 2008-10-05 20:21

Making a roguelike is a great way to learn a lot of stuff that ends up being very useful knowledge (especially in a language like C or C++). I did this myself, although I didn't actually know what I was doing was called a "rougelike" until way after I had finished. I just wanted to make a simple game using C++ and picked up a bunch of stuff as I went along.

It is also a very good way to scare someone off of programming anything ever again if the programmer takes it seriously. That shit takes forever to actually make the game itself any fun, fair, or balanced.

Name: Anonymous 2008-10-05 20:47

Old programming contests have a bunch of fun little (in terms of code) problems.

Name: Anonymous 2008-10-06 6:49

A Roguelike is a damn good idea. You might want to look into libtcod for console support, especially if you're doing development under Windows. Anyway though I second the Roguelike idea, it'll teach you a hell of a lot.

Name: Anonymous 2008-10-06 9:44

>>36
ncurses > libtcod

Console emulation has it's uses, but a strictly turn-based game is not one of them.

Name: Anonymous 2008-10-06 10:46

>>37
Makes no sense, and libtcod provides, like, 9 things that are necessary but may be hard for a newbie to write.

Name: Anonymous 2008-10-06 12:10

What I did was get something that allows for colored text and backgrounds (I forget what it was called), used the winmm library for sound and music, and coded everything else from scratch.

Name: Anonymous 2008-10-06 12:18

>>39
allows for colored text and backgrounds
Probably <conio.h>, the Windows shit for doing funny console things.

>>38
That's a fair enough argument.

>>36 recommends libtcod for console development; ncurses is superior to libtcod's console emulation (which is a mess to accommodate a broken operating system without real console support). Obviously comparing a rendering library like ncurses to an entire toolkit is moot, but >>37 wasn't attempting to make that comparison.

tl;dr DwarfFortress has made me rage.

Name: Anonymous 2008-10-06 15:15

>>40
DwarfFortress has made me rage.
Is this even relevant to the topic, or is it just your way of saying, "I've played Dorf Fortress"?

Name: Anonymous 2008-10-06 15:43

>>36
Good advice. libtcod rocks.

OP could also try to write a Unicode roguelike (maybe restricting himself to Lucida Console characters). It'd have these advantages:
1. The advantages of writing a roguelike.
2. He'd learn about Unicode and how to do things the Proper Way.
3. It'd be kina innovative, which is something OP can otherwise hardly afford.

>>40
which is a mess to accommodate a broken operating system without real console support
While I share your hatred for toy operating systems, I feel obliged to point out that Windows' console >>>>>>>>>>>>>>>>>>>>>>> UNIX terminals, even if the console windows themselves lack the nice features of good terminal emulators such as Konsole. The console system is so much better. It's Unicode (if you know how to use it, but almost nobody does). You have real scancodes, not ^]]36;45lolM bullshit. You can use any key, as in any, as well as the mouse, fully. You can use Esc properly. You have colour attributes, not ^]51fag;33 bullshit. And everything works perfectly regardless of your terminal emulator (there's none), emulated terminal, terminfo, version, Linux distribution, and bugs. You don't have to support 45 different sequences in order to detect a fucking arrow, or load an XBOX, often non-Unicode library just to read what might be an arrow.

I wish GNU/Linux ditched absolutely everything about terminals and provided a new means for text-based applications; something just like Windows' console, where all output is written to and events are read from a file (with forcefully standard, efficient, simple binary commands for anything that's not UTF-8 text; maybe simply using Unicode private use characters to make it even simpler).

Name: Anonymous 2008-10-06 17:08

>>41
I haven't played it, and it still makes me rage.

Name: Anonymous 2008-10-06 17:11

I wish GNU/Linux ditched absolutely everything about terminals and provided a new means for text-based applications; something just like Windows' console, where all output is written to and events are read from a file (with forcefully standard, efficient, simple binary commands for anything that's not UTF-8 text; maybe simply using Unicode private use characters to make it even simpler).
It's called X11 (or even SDL).  Create a window, grab input, draw characters.

Check Angband for shitty code.

Name: Anonymous 2008-10-06 19:30

>>42
I'm sure Anoix will fix all the terminal bloat.

Name: Anonymous 2008-10-07 4:55

First write an efficient graph implementation, then write an algorithm to generate random graphs and then write an algorithm to find out whether the generated graphs are isomorphic.

That should keep you occupied for a while.

Name: Anonymous 2008-10-07 6:25

>>42
simple binary commands for anything
catting a data file to the console is going to be fun shit

Name: Anonymous 2008-10-07 6:32

>>42

You sir, are an idiot.

Name: Anonymous 2008-10-07 11:11

>>42
It's Unicode (if you know how to use it, but almost nobody does).
Wait, how do you write UTF-8 strings to the Windows console, again?

I never got that to work, ever.

Name: Anonymous 2008-10-07 12:31

>>49
Windows does not support utf8, only broken utf16le. You can change it with chcp (I don't remember exact code, because I'm not a faggot like >>42).
While we're at it, gnome terminal software has perfect support for utf-8, and for lots of other encodings (everything from iconv I guess)
I don't know how much of a faggot you should be to claim that windows has good support for unicode.

Name: Anonymous 2008-10-07 13:01

Windows console support is horrible all around. Broken, buggy, and frankly not as fast as it should be.

Name: Anonymous 2008-10-07 13:09

>>50

>Windows does not support utf8

-The default command shell does.
-You are right chcp 65001 does change it to UTF-8.
-It supports a lot of other encodings to.
-Powershell does unicode.
-Unicode is the default for Powershell.
-Powershell is now part of Windows (and can be downloaded for older versions)

I don't know how much of a faggot you should be to claim that windows does not have good support for unicode.

Name: Anonymous 2008-10-07 14:13

>>43
But is it relevant

Name: Anonymous 2008-10-07 14:40

>>53
It never was.  DF sucked from the start and only suckered in ADOM-tards that don't know what Free software is like.

Name: Anonymous 2008-10-07 18:05

>>54
Orly? Is there any Free software out there that does that whole dynamic-environment-in-randomly-generated-world thing like DF does, roguelike or not?

Name: Anonymous 2008-10-07 19:06

>>55
What has this to do with sucking?

Name: Anonymous 2008-10-07 19:12

>>56
Free® doesn't offer a superior or even comparable replacement for DF.  Therefore "know[ing] what Free software is like" is irrelevant and >>54 is dumb.

Name: Anonymous 2008-10-07 19:25

>>57
Conceded.

Name: Anonymous 2008-10-07 20:12

>>52
BMP != Unicode

Name: Anonymous 2008-10-08 13:32

>>55
Orly? Is there any Free software out there that does that whole dynamic-environment-in-randomly-generated-world thing like DF does, roguelike or not?
Yeah.

Name: Anonymous 2010-12-06 9:02

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2010-12-06 9:13

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-02-02 23:53

Name: Anonymous 2011-02-03 0:56

Name: Anonymous 2011-02-03 3:04


Don't change these.
Name: Email:
Entire Thread Thread List