# 8 men in a restaurant

I know this puzzle is easy, but I hope it isn't too easy... If it is I really have to work on my puzzle-creation skills :P

## Story & Question:

8 men plan to go eating to a restaurant, where they will celebrate Mr. Blue's birthday. Here is an example how it could look like:

(The above image is just for visualization!) They're still struggling with coming up with a solution so every man is satisfied with his position. Can you help them find (one of the four) solutions only given the preferences of each man? (I will only accept an answer that contains a picture (or code snippet) of the solution like the one above, see "Tools").

## Preferences:

1. Mr. Red wants to sit at a corner.
2. Mr. Green wants to face Mr. Red
3. Mr. Blue wants to have Mr. Orange as an immediate neighbor
4. Mr. Pink doesn't want to sit at a corner
5. Mr. Orange wants to have Mr. Blue as an immediate neighbor and wants to have Mr. Red as an immediate neighbor
6. Mr. Yellow wants to face Mr. Magenta
7. Mr. Magenta doesn't want to have Mr. Green as an immediate neighbor
8. Mr. Cyan wants to face Mr. Blue

Clarification: If you divide the image in 5 columns, the seats inside the first 2 and the last 2 columns are the seats that are at a corner.

## Tools:

I've provided 9 pictures, one of the table and one of each man with alpha channels. This will make it much easier for you to create/get to an answer. All you need is an image editing program. But like mentioned before, I also accept an illustration with text in a code sample, like this:

           Red|Green|Blue
====================
====================
Pink ==================== Orange
====================
====================
Yellow|Magenta|Cyan


But I think an image like I made would be nicer for visualization :)

Images you can download: Table and seats, Mr. Red, Mr. Green, Mr. Blue, Mr. Pink, Mr. Orange, Mr. Yellow, Mr. Magenta, Mr. Cyan

• Clue 3 is redundant; it's part of clue 5. Clue 8 is also redundant. Nov 8 '20 at 11:31

I think there are 4 that satisfy everyone (unless I've made a mistake):

1)

2)

3)

4)

As for approach I figured starting with Pink was good since he only had 2 possible slots, and conveniently he made the Blue-Orange-Red trio work out to be opposite him (because if they weren't opposite him, then Blue couldn't be Opposite Cyan). At that point the rest are really easy to fill in.

Edit: I've changed it to images. Hopefully I didn't mess it up in doing so.

• I accepted this answer because it features more solutions, and also has a good explanation on how to approach the puzzle.
– user14478
Aug 18 '15 at 12:09
• I figured solution #2 in my head before reading the answers but my approach was in this order of the preferences: 1, 2, 5, 3, 6, 7, 8, 4. Aug 18 '15 at 18:49

The following seating arrangement will satisfy everyone

         Red|Orange|Blue
====================
====================
Yellow ==================== Magenta
====================
====================
Green|Pink|Cyan


How I arrived at this solution: I have to admit that it wasn't the most logically sound method, but it helped me get to a solution right away.

Using clue 1, I arbitrarily put Mr. Red at the top left of the table. Clue 2 put Mr. Green opposite him. Using clues 3 and 5, Mr. Orange came to the middle top position and Mr. Blue to the right top position as Mr. Green already occupied the position two spaces to the other side of Mr. Red. With the top middle position occupied, Mr. Pink could only sit at the bottom middle position according to clue 4. Clue 9 put My. Cyan at the bottom right position. Now, with only two places left, Mr. Magenta had to go to the rightmost seat, because he didn't want to sit next to Mr. Green according to clue 7. That put Mr. Yellow in the leftmost seat.

• I found same solution. Just few seconds later... Aug 18 '15 at 11:44
• I tried too, and i found this solution. I think this is the right answer Aug 18 '15 at 11:57
• The clues don't distinguish between left or right, so it's a-OK. Aug 18 '15 at 13:20
• Two men facing each other are either both at a corner, or neither are. So both R and G are at a corner.

• Given 5, O has to be between B and R. Two spots away from a corner is another corner, but B and R can't face each other like R and G, so B, O and R need to sit on the same edge.

• Based on 6 and the previous inferences, Y and M both need to sit on the short edges to avoid having to face B, O or R.

• Based on 8 and 6, a possible solution can be this:

         C|P|G
====================
====================
M ==================== Y
====================
====================
B|O|R


. Basically, select any of the 4 corners for R, then put G on the opposite, B at the other corner on R's edge, O in the middle of it, C at the remaining corner, M on the short edge away from G, Y on the other short edge and P at the remaining spot.