Welcome
Welcome to the forums of AntiRTFM's Absolute N00b Spoonfeed C++ Tutorials!

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

[windows] Mastermind

Finished making your own program (thats not part of the practicing forums) ? Show it off here

[windows] Mastermind

Postby antiRTFM on Thu Oct 01, 2009 3:16 am

Browsing through some old code I found this i made like in 2006

***WARNING***

Please only refer to the horrible source code for curiosity's satisfaction only. NOT IN ORDER TO LEARN ANY PROGRAMMING TECHNIQUES, CODING PRACTICE, OR CODING GUIDELINE AT ALL. AND DEFINITELY NOT AS A REFERENCE OF C++ PROGRAMMING!!!

There are disgusting abomonations of c++ coding in there, so please protect yourselves from all of it!

You have been warned!!


mediafire


EDIT: if there is anything you want to learn out of the source code, tell me what is it that you learned by replying here in this thread and i'll tell you what's wrong about it and whats the REAL correct way to do it
User avatar
antiRTFM
Administrator
 
Posts: 470
Joined: Sun Apr 13, 2008 9:10 am

Re: [windows] Mastermind

Postby noobgrammer on Thu Oct 01, 2009 8:57 am

I loved that game I use to play it on the Hoyle board game on my computer I could get the computer sometimes in two trys. That was my first C++ game I tried to make but it didn't have the color didn't know how so I used numbers I also forgot to say if any are in the right positions yours is of course way better than mine.

oh it wouldn't compile on mine with
Code: Select all
int _tmain(int argc, _TCHAR* argv[])


it was complaining about the _TCHAR so I commented it out and just put

Code: Select all
int main()


compiled for me then

maybe some day you could explain what all that stuff in main means I see in some code and not others I read somewhere if you didn't put it in for the library SDL it wouldn't work right or at all can't remember which.

sorry but I'm gonna have to take a few notes on it you know we can't resist
thanks for the post
I need a compiler with a can of RAID built into it

I added a msn messenger just for programming feel free to email or add yourself to it
User avatar
noobgrammer
 
Posts: 198
Joined: Tue Aug 25, 2009 10:44 am
Location: Orlando

Re: [windows] Mastermind

Postby antiRTFM on Thu Oct 01, 2009 11:05 am

OK you know what, if there is anything you want to learn out of the source code, tell me what is it that you learned by replying here in this thread and i'll tell you what's wrong about it and whats the REAL correct way to do it.

I'm adding this message to the primary post
User avatar
antiRTFM
Administrator
 
Posts: 470
Joined: Sun Apr 13, 2008 9:10 am


Return to Full programs

Who is online

Users browsing this forum: No registered users and 0 guests