Welcome to BrainDen.com - Brain Teasers Forum
![]() |
Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account. As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends. Of course, you can also enjoy our collection of amazing optical illusions and cool math games. If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top. If you have a website, we would appreciate a little link to BrainDen. Thanks and enjoy the Den :-) |
Touring the chessboard with a single die
#1
Posted 08 June 2012 - 04:50 AM
Place a single die on QR8 of a chessboard, or a smaller 8x8 grid of squares.
The die "moves" from square to square by tipping on its side in a N, E, S or W direction,
[thus] making a 1/4 turn each time it moves to a new square.
The object is for the die to move to each of the squares, only once, and finish on KR8.
That is to tour the board beginning on the NW corner and end on the NE corner.
The final constraint is that the 1-spot must be up on the beginning and ending squares,
but on none of the intervening squares.
To describe the tour, number the board left to right so that the top row (8th rank)
Is 1 2 3 4 5 6 7 8 and the bottom row (1st rank) is 57 58 59 60 61 62 63 64.
Again, begin on square 1, and end on square 8.
- Bertrand Russell
#2
Posted 08 June 2012 - 05:06 AM
#3
Posted 08 June 2012 - 05:09 AM
I understand the die tipping over onto an adjacent face. Is that the "1/4 turn" you mention, or is there an additional quarter turn (ie, on some other axis)
That is the only turn. OP edited to clarify that point.
- Bertrand Russell
#4
Posted 08 June 2012 - 02:31 PM
Edited by phil1882, 08 June 2012 - 02:35 PM.
#5
Posted 08 June 2012 - 11:14 PM
At position 5 the 1 is on top of the die again breaking that constraint. Unless, that is, if I'm misreading the constraints.Spoiler for got it on my first try
#6
Posted 09 June 2012 - 02:03 AM
#7
Posted 09 June 2012 - 01:20 PM
#8
Posted 09 June 2012 - 08:49 PM
Very nice, EventHorizon! I was just about to write a backtracking program when I saw that you beat me to it.Spoiler for Solution
I was going to have mine check to see if there were any other ending grid squares besides square 8.
I never programmed in C++, so I can't decipher your code. I ran it and it took about 3 minutes on my
machine to come up with the solution you posted. Would it be easy to modify your code so that it looks
for endpoints (with the 1 up) other than square 8? Congrats!
#9
Posted 10 June 2012 - 08:02 AM
Yeah, it would be easy. So easy in fact... that here it isVery nice, EventHorizon! I was just about to write a backtracking program when I saw that you beat me to it.
I was going to have mine check to see if there were any other ending grid squares besides square 8.
I never programmed in C++, so I can't decipher your code. I ran it and it took about 3 minutes on my
machine to come up with the solution you posted. Would it be easy to modify your code so that it looks
for endpoints (with the 1 up) other than square 8? Congrats!
#10
Posted 12 June 2012 - 03:43 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users






