Football simulation

This is a discussion on Football simulation within the C++ Programming forums, part of the General Programming Boards category; Hey everyone, I just finished writing the first version of a football season simulation - my first heavily object oriented ...

  1. #1
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728

    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 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!

  2. #2
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Oops, got a little trigger happy there and forgot to attach the file, here it is:
    Attached Files Attached Files

  3. #3
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    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.
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    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.

  5. #5
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    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
    Last edited by moi; 11-21-2002 at 01:26 PM.
    hello, internet!

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    good job, its very nice!

  7. #7
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    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?

  8. #8
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    i just remembered, people using a non-win2k/xp console can do "mode con:lines=50" before running your program. this works fine.
    hello, internet!

  9. #9
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    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

  10. #10
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    system("mode con:lines=50"); //Perhaps?
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  11. #11
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    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:
    Attached Files Attached Files

  12. #12
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Very nice!
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  13. #13
    Registered User
    Join Date
    Nov 2002
    Posts
    10
    Cool, great job PJ! One question though, I know stats are random and such, but how come my Detroit Lions still always stink???

    And dang, keep getting up to $800 in bet money, but can't get over that $1000 barrier...

  14. #14
    Registered User
    Join Date
    Apr 2002
    Posts
    81
    Looked at it in between my madness.... I think it's cool!!! what do I know
    "Our greatest glory consists not in never failing,
    but in rising every time we fall."

    Oliver Goldsmith (1730-1774).
    Anglo-Irish writer, poet and playwright.

  15. #15
    Quint
    Guest
    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!

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 03:25 PM
  2. Role of c++ in simulation software
    By CChakra in forum C++ Programming
    Replies: 9
    Last Post: 11-18-2008, 01:36 AM
  3. Help with time simulation assignment
    By rakan in forum C++ Programming
    Replies: 3
    Last Post: 10-31-2006, 10:39 AM
  4. Fantasy Football Registration
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 08-01-2002, 02:32 PM
  5. Football simulation strategy
    By real_cozzy in forum Game Programming
    Replies: 0
    Last Post: 08-14-2001, 04:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21