# Connect 4 Recursive

Here is a variant of the standard connect 4.

There are seven connect 4 grids (size 6 by 7) numbered 1 to 7. Each grid has the columns numbered 1 to 7. The person who starts selects any one of the seven grids and plays a single move in any column of that grid. (Gravity obviously exists in each grid)

Now onwards, a player has to play in the grid corresponding to the column number of the previous move by the opponent.

For example, suppose Alice starts by playing in the 3rd column of the 6th grid. Now Bob has to play in the 3rd grid. Let's say he plays in the 2nd column. Now Alice has to play in the 2nd grid. And so on....

Alice can choose to play in the 2nd column of this grid also, in which case Bob will also have to play back in the same (2nd) grid.

Once a person completes 4 in a row in one of the seven grids, he/she is the winner of that particular grid. However play will continue as per above mentioned rules. Both players are allowed to make more moves in the same grid, but any more 4 in a rows created in the same grid are of no use.

If Bob say plays in the 7th column of the 4th grid and suppose the 7th grid is completely filled (all 42 spaces), then Alice can play a move in any grid (just like the first move of the game). Same goes with Bob also.

The person to win the most number of grids (of the 7) wins the competition.

If Alice and Bob play perfectly, who wins?

P.S. This isn't just a random game, I know the solution to it.

• could you illustrate with a picture of "seven connect 4 grids (size 6 by 7) numbered 1 to 7" please? having a hard time to picture it :( what is size 6 by 7? – Oray Dec 30 '16 at 13:35
• @Oray, size 6 by 7 is a standard-size Connect Four grid. Just imagine 7 of these grids. – tilper Dec 30 '16 at 14:09
• +1 because you know the solution and you aren't asking us to solve chess or something. – greenturtle3141 Dec 30 '16 at 16:26
• sorry but the text is not that understandable. You need to show everything with illustration: You say "each grid has columns", and "selects any one of the seven grids and plays a single move in any column of that grid". Grid is rows? or the empty circle? If grid is the empty circles, then the column numbers represents each grid on that column... you are supposed to say "each column has grids" if so, not "each grid has columns"... you need to fix the text, otherwise noone would able to answer it! – Oray Dec 30 '16 at 18:45
• @Oray This is entirely understandable to me. A Connect Four grid is the 6 row, 7 column vertically oriented grid into which each player drops their pieces. In OP's game, you are playing on 7 of these grids at once, numbered 1 to 7. The first player to play chooses what grid they will play on, and (of course) chooses which column to play in. Whichever column that player played in, the next player must play on the same numbered grid in whatever column they choose, and so on. Each play's column# will be the grid# for the following play, unless a grid fills fully. – Rubio Dec 30 '16 at 20:40