The moose likes Programming Diversions and the fly likes Counting in decimal on 6-sided dice Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Reply Bookmark "Counting in decimal on 6-sided dice" Watch "Counting in decimal on 6-sided dice" New topic
Author

Counting in decimal on 6-sided dice

David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I haven't tried this myself but thought it might be an interesting problem.
Given two 6-sided dice, and able to write any (single) number on any face of either dice, what is the largest number you can count up to (ie display each number starting from 1) and how are the numbers arranged on the dice?
Assume you only need to show a single value for numbers less than 10 ie 9 and not 09


[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

my max is 29, I can't make 30
Vlado Zajac
Ranch Hand

Joined: Aug 03, 2004
Posts: 243
If 6 can be turned upside down and used as 9 it is 43. (otherwise 32)
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Nice, inverting a 6 would be allowed.
The practical use is that we have a Christmas thing with dice that count the days down to Christmas, and rather than looking to what they have I thought I'd pose the question here instead.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1920

I'm not sure whether I got the question.

> any (single) number

Do you mean cipher by that?

> count up to

That just means: arrange the two dice (being allowed to hide one of them), so that they show a number?

(012387)(12345[69])

http://home.arcor.de/hirnstrom/bewerbung
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 890
What if, in addition to a 6 being flipped over to make a 9, you could also flip a 7 over to make a 1? In that case, how high could you count?

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 8428

well while we're at it...a lot of sports teams use the same thing for a '2' and a '5'. Or are we now making it too easy?


Never ascribe to malice that which can be adequately explained by stupidity.
 
 
subject: Counting in decimal on 6-sided dice
 
Threads others viewed
Can someone please help me out.
Dice Question
Beginner Yahtzee Progam
Very new to java: How to update a label
Generating random numbers with given properties
IntelliJ Java IDE