-
Football simulation
Hey everyone, I just finished writing the first version of a football season simulation - my first heavily object oriented project. Without graphics it ain't much, but considering I've only been doing C++ since July and have very little time to program outside work and school, I'm proud of the little guy :D My favorite feature is the ability to bet on the games and make money - and if you make enough money you unlock a secret menu option! Let me know what ya think!
-
Oops, got a little trigger happy there and forgot to attach the file, here it is:
-
its a good, robust (from what i looked at) program, but there are spots where info scrolls off the screen before you can look at it (team info, and play games menus for example).
clean that up and you have yourself a pretty good little program.
-
What size is the window you viewed it in? The size of my window when maximized never has anything scrolled off the screen. I wasn't sure how to address this problem, is there a way to make the screen a particular size? I only know how to make it full screen, but then I lose resolution and it doesn't look as good.
-
assuming that the user has a console larger than 80x25 with any dos or win32 console program is usually a bad idea.
otherwise, nice proggie
-
-
True, I agree moi. But is there any way to force the console to be bigger than 80x25 without going full screen and losing the resolution?
-
i just remembered, people using a non-win2k/xp console can do "mode con:lines=50" before running your program. this works fine.
-
Cool, but any way to do this within my code so that it happens automatically when ran? Sucks to force the user to do my dirty work :D
-
system("mode con:lines=50"); //Perhaps?
-
Sweet, got it that code to work, and experimented and found a way to set the column width as well, thanks! But in the end, after looking at it in many different monitors with different resolutions, I decided to just make it go full screen. So if anybody is having problems with the scrolling, redownload the updated version here:
-
-
Cool, great job PJ! One question though, I know stats are random and such, but how come my Detroit Lions still always stink??? :D
And dang, keep getting up to $800 in bet money, but can't get over that $1000 barrier...
-
Looked at it in between my madness.... I think it's cool!!! what do I know :)
-
How come sometimes when i bet i still lose? like if i bet on the raiders and they win but i still lose money?
Nice game tho!