wu :: forums
« wu :: forums - SOS »

Welcome, Guest. Please Login or Register.
Nov 25th, 2024, 2:17am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: SMQ, Icarus, ThudnBlunder, Grimbal, towr, william wu, Eigenray)
   SOS
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: SOS  (Read 547 times)
ThudnBlunder
wu::riddles Moderator
Uberpuzzler
*****




The dewdrop slides into the shining Sea

   


Gender: male
Posts: 4489
SOS  
« on: Jun 14th, 2008, 1:04pm »
Quote Quote Modify Modify

Jack and Jill play a game with a piece of paper on which is a row of n empty boxes. They take turns writing either an 'S' or an 'O' in an empty box. The winner is the one who completes an 'SOS' in consecutive boxes. For which values of n does the 2nd player (Jill) have a winning strategy?
IP Logged

THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
Frumious Bandersnatch
Newbie
*





   


Posts: 15
Re: SOS  
« Reply #1 on: Jun 16th, 2008, 11:16am »
Quote Quote Modify Modify

A few thoughts:
 
The only way to win (assuming your opponent is paying attention and trying not to lose) is by giving your opponent a board like ... S __ __ S ..., where the two blanks are the only empty boxes left.  

 
Therefore, any winning strategy for the second player probably requires an even number of boxes.  
 
That may be necessary but it's clearly not sufficient, because in the case where n=4, Jack can just play O __ __ __ and force a draw. And if n=6, he can force a draw with __ __ __ O __ __ .  
 
Let's see. Jill needs to start a turn with seven empty boxes in a row. That way she can play an S into a box with three empty boxes on either side, meaning that on her next turn she can always create the S __ __ S pattern. Then it's just a matter of waiting -- and not letting Jack make an SOS anywhere else.
 
So maybe the answer is any even number >= 14.
IP Logged
ThudnBlunder
wu::riddles Moderator
Uberpuzzler
*****




The dewdrop slides into the shining Sea

   


Gender: male
Posts: 4489
Re: SOS  
« Reply #2 on: Jun 16th, 2008, 1:12pm »
Quote Quote Modify Modify

Yes Brumious Fandersnatch, that is the right idea. The S _ _ S configuration is key.
 
Jack wins when n is odd and at least 7
Jill wins when n is even and at least 16
Otherwise, including when n = 14, it is a draw.
 
 
 
IP Logged

THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
Hippo
Uberpuzzler
*****





   


Gender: male
Posts: 919
Re: SOS  
« Reply #3 on: Jun 17th, 2008, 8:36am »
Quote Quote Modify Modify

Before reading the comments:
How the loss in 1 look like ... If there are free places only with one free neighbour and one S neighbour you cannot play O otherwise you play O on such a place. But in the mentioned situation there must be free spaces in pairs surrounded by S, therefore you cannot play S either. So the only loosing situation is with even number of free places ... therefore the parity of initial number of places determines looser / winner roles in correct play. The situation is not such easy as the "looser" may force a draw in some situations.... his goal is to prevent creation of S..S pattern.
If the "winner" starts, he can place S on 4th position to attack S..S pattern on positions 1,4 and 4,7. So for n>7, odd the first player wins.
What for the second player ... first player cannot play S in distance greater than 3 from any side (cannot play at all for n>5). So he plays O trying to prohibit S..S patterns as much as possible. Playing to the "middle" works best, preventing S..S pattern upto even n<15. For n>15 even, there remains 8 positions with no letter, place S to the 4th from the side which is not incident with O. If the S..S on this side is prevented, place S on the 7th, (which is not incident with O)...

 
As was posted by ThudanBlunder Smiley the case n=14 defense ......O.......-> ......O...S... -> ......O...S..O -> ......OS..S..O -> .....SOS..S..O the pattern S..S is forced, but the game is lost in one.
« Last Edit: Jun 17th, 2008, 8:43am by Hippo » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board