Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,630

Well, the imagination bug didn't bite, so I am calling it Four In A Line (Drop)

And I made Three In A Line (Drop) also.

And in an excess of zeal I also made Four In A Line (Timed)

(I have a general page with all the links called Connect Crazy!)

Express your opinions!

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**mathsyperson****Moderator**- Registered: 2005-06-22
- Posts: 4,900

That nasty computer is making me feel bad.

Why did the vector cross the road?

It wanted to be normal.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,630

You made me laugh ... a lot!

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**mathsyperson****Moderator**- Registered: 2005-06-22
- Posts: 4,900

I don't think the end bit is on purpose.

Why did the vector cross the road?

It wanted to be normal.

Offline

**Devantè****Real Member**- Registered: 2006-07-14
- Posts: 6,400

Oh well it isn't, but I put it under the Comedy section.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,630

That is so cool ... and fun!

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**Devantè****Real Member**- Registered: 2006-07-14
- Posts: 6,400

You mean my video?

If so, thanks, it really wasn't made to be all that good.

I plan on making other ones to show off our Connect 4 variations on Maths Is Fun.

Offline

**orang-jerman****Member**- Registered: 2008-07-26
- Posts: 1

hi

I also have made program with connect four for school with Java.

But my computer player is much stronger than yours. Yours I can beat all the time with 'hard'.

But never the less it's very nice made.

Offline

**kylekatarn****Member**- Registered: 2005-07-24
- Posts: 445

orang-jerman wrote:

hi

I also have made program with connect four for school with Java.

But my computer player is much stronger than yours. Yours I can beat all the time with 'hard'.

But never the less it's very nice made.

What search algorithm you use?

Offline

**clav****Member**- Registered: 2009-01-11
- Posts: 2

Hello everyone. I've just register to say a few things about the engine of connect four. It quite drags:P The biggest defy of it is not recognising situations where computer's position is already won:

1) where there is a sequence of two thees already on the board such that "lacking four" places are one under the other- which makes the game won with a simple plan of fulfilling the column where it happened. Example:

o x x o o o

o x x o o o x

x o o x x o_x

If it's o turn, he just has to fill the sixth column: if it's x turn, he has to find a forcing winning plan or he would lose.

2. When computer has three pawns located in a way that if human puts his pawn in a column he'll lose immediately, computer can just calculate if human will have to do it simply analysing the number of moves left. If it occurs that if no side wins before this time, human will find itself in a zugzwang, computer should take the defensive attitude... I quite like this strategy:)

Anyway, the game can be easily calculated (there are not so many possibilities here, I don't know to calculate the permutations here, but is certainly much less than [6*7]!) so you'd better leave the game as it is- to provide human at least with some fun of winning aganist the Machine...

*Last edited by clav (2009-01-15 02:32:23)*

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,630

Hi clav, thanks for your comments.

What difficulty level was that at? The computer won't always do perfect play to give the human a chance.

Offline

**clav****Member**- Registered: 2009-01-11
- Posts: 2

Hard.

Offline

**quittyqat****Member**- Registered: 2009-04-08
- Posts: 1,213

Zhyholliom,

That glitch is very interesting!

I'll be here at least once every month. XP

Offline

**four_score****Member**- Registered: 2010-04-15
- Posts: 1

Hi Folks,

I wanted to get opinions on a newly launched multiplayer game inspired by classic Four in a Row/Connect Four.

http://apps.facebook.com/four-score/

Looking forward to constructive feedback.

Thanks!

Offline

**harley****Member**- Registered: 2012-03-02
- Posts: 1

Just as some advice, the 3 in a line is probably a bit easy. Perhaps you could make it a bit more like the drop version (if you want to).

The connect 4 3D and the conect 3 and 4 drop versions are awesome though. I sill have trouble beating connect 4 3D on hard.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,408

Hi harley;

Welcome to the forum. I have trouble with drop 4.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,630

Thanks harley!

The 3D version is hard, and was also a challenge to make

BTW I was asked to modify the Timed version so that you lose when your time runs out. So I made this special version: Four In A Line Timeout Loses

Which is better: Timed out means losing, or just losing a turn?

Offline