PhoenixLord Official Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forum of the Tyrant Clan, PhoenixLords.


3 posters

    A Little Programming

    Nighttiger
    Nighttiger
    Admin
    Admin


    Posts : 189
    Join date : 2011-10-22
    Location : North Carolina, USA

    A Little Programming Empty A Little Programming

    Post by Nighttiger Mon Jan 02, 2012 7:59 pm

    So I made this a few days ago... as a little fun. I've wanted to mess around with dice game for a bit anyway.

    Spoiler:
    NOTE: A lot of that code is the 3 extra modes. I could have made it a lot more efficient and shorter, but I was lazy and just copy-pasted the original code with slight changes...


    May as well post it, =P
    You can try it if you want, but you need to copy paste the code into a compiler, language is C++.

    So basically what it does in picture form: (This is from running it)
    A Little Programming DGU1
    Asks for what mode you want to play. In all of the pictures I'm doing standard.

    A Little Programming DGU2
    Little description of game mode, blah blah blah.

    A Little Programming DGU25
    Shows what computer rolled. Player has to choose if their roll be be more or less. Classic kind of thing.

    A Little Programming DGU3
    Yup, betting. Player inputs the number of coins they want to bet. If they try to be more than they have it puts it at max.

    A Little Programming DGU4
    Message if you tie. You get your bet back.

    A Little Programming DGU5
    Message if you win. You get back double your bet.

    A Little Programming DGU6
    Message if you lose. (Sucker!)

    A Little Programming DGU7
    Asks to access shop...

    A Little Programming DGU9
    But said shop is currently empty. Maybe I'll add something sometime.

    A Little Programming DGU8
    And asks if you want to play again. If yes, it loops the process until you say no or X it out.

    A Little Programming DGU10
    And if you do say no, then it says bye and also how much you got.



    Phew, there. I was wondering if any of you had any suggestions? And I like to post random stuff I do.
    IcyHaze02
    IcyHaze02
    PhoenixLord
    PhoenixLord


    Posts : 251
    Join date : 2011-10-23
    Age : 38
    Location : California

    A Little Programming Empty Re: A Little Programming

    Post by IcyHaze02 Mon Jan 02, 2012 10:13 pm

    "Greetings Professor Falken. Shall we play a game? Wouldn't you prefer a good game of chest?"

    Hehehe. Sorry, guess that is not constructive input. This just reminded me of WarGames for some odd reason. Ah, I miss '80s movies.
    avatar
    miller
    Elder Phoenix
    Elder Phoenix


    Posts : 62
    Join date : 2011-11-19

    A Little Programming Empty Re: A Little Programming

    Post by miller Tue Jan 03, 2012 3:07 pm

    Ah... I actually put bad ideas in NightTiger's head about online casinos.

    Don't do it... online casinos are a favorite of hackers. I personality don't feel any remorse if I can cheat a online casino... but I'd never actually want to operate one with all the issues involved. I believe the U.S. government even shut down some poker sites awhile ago (i.e. Party Poker) because the government wasn't getting their cut.

    But it does seem like Night is a computer science student indeed.

    Tip: Work on any independent project on .NET and you'll get a job easily.
    Nighttiger
    Nighttiger
    Admin
    Admin


    Posts : 189
    Join date : 2011-10-22
    Location : North Carolina, USA

    A Little Programming Empty Re: A Little Programming

    Post by Nighttiger Tue Jan 03, 2012 6:08 pm

    Haha, I never planned to actually do a casino....

    Sponsored content


    A Little Programming Empty Re: A Little Programming

    Post by Sponsored content


      Current date/time is Fri Apr 26, 2024 3:13 pm