+ Reply to Thread
Results 1 to 8 of 8

Excel Dice Game

  1. #1
    Registered User
    Join Date
    09-09-2006
    MS-Off Ver
    Excel (Office 365 ProPlus)
    Posts
    47

    Excel Dice Game

    Hi All

    I need to create a game in Excel, and usually quite a competent user, however for this game I just cannot get my head around even how to start or approach it! (Excel 2007 btw!)

    So here goes ...

    The game is based on 15 rounds/turns of rolling, with each turn having a different criteria to count as a sucess.

    Players are weighted in the number of rolls they have. (Player A = 1 per round, Player B = 1 per round, Player C = 2 per round, Player D = 12 per round, Player E = 32 per round).

    Each round has a different criteria for a sucess in that particular round. e.g. Round 1 (4 rolls of dice) with sucess being 4 sixes in a row).

    I have tried to demonstrate with a link to a excel spreadsheet file.

    Dice Game.xlsx

    If anyone can help that would be amazing. At the moment I cant even see a tunnel, let alone the light at the end!

    I have worked out that randbetween(1,6) is a start

    Thanks

    Jay
    Last edited by Jay_hl; 06-28-2012 at 06:26 AM.

  2. #2
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Excel Dice Game

    this should be easy, but on deeper reader i think itll be hard to accomplish... i could create it but i dont think it will have the desired effects of what you are looking for. (and it will take time)

  3. #3
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Excel Dice Game

    i just been looking into it and created this so far for you, but i rolled like nearly 1500 times and it didnt roll me 4 x 6's
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Excel Dice Game

    Well, the odds of rolling 4 sixes would be (6 x 6 x 6 x 6)=1296/1. So you've been a little unlucky, but nothing out of the ordinary.

    Doesn't sound like a particularly fun game to me!!

  5. #5
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Excel Dice Game

    thats what i thought, add if ypou only allowed 1 go of 4 dice then itll take a while to get past the first step

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel Dice Game

    Here's a rough start on what you may be looking for. There's a long way to go.
    I put in formulas for each of the 15 rounds that check your rolls and either give 0 or 1 point.
    I made the assumption that it might not always be weighed with each player the way you stated so I wrote a macro that inserts the proper number or rows depending on what you put in for the # of throws per player (Col B). Click on Setup button.

    I had started to write VBA for each Round but then wasn't sure what direction you were going to go in. Will people actually be throwing dice and you'll be entering the results or do you want it simulated in the little squares in my setup or would you prefer something like what wayneg set up on a separate page and just transfer the final values into page 1. Also, if someone has multiple rolls, do they continue to amass points in a particular round or do they stop when they've achieved the goal for that round?

    Anyway, spreadsheet attached. I'm going to be away for about 5 days so will get back to you then.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel Dice Game

    Updated version with all the buttons working (although maybe not the way you want them to).
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Excel Dice Game

    i take it he didnt stay around to find out his answer ????

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1