Connect-4

Your browser needs java to view projects. Click here to install Java.

user_icon Oldschooler2 shared it 2 months, 3 weeks ago
206 views, 1 tagger, 24 people love it, 1 remix by 1 person, 25 downloads, in 6 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
maxmario maxmario 3 days, 15 hours ago

make the computer harder, but still good game

Jani413 Jani413 3 weeks ago

fun.

ev999 ev999 3 weeks, 2 days ago

Cool!

bogwart bogwart 1 month ago

this is simple:)

Jacob32isacat Jacob32isacat 1 month, 1 week ago

i won when i didn't.

mnm365 mnm365 1 month, 2 weeks ago

you could make it better love it still lol this is sweet.

cmuriel cmuriel 2 months ago

Can you add better AI :) ?

cmuriel cmuriel 2 months ago

I like this game !

HumanLight HumanLight 2 months ago

i win!

mdv123 mdv123 2 months, 1 week ago

I won!

boogawk boogawk 2 months, 2 weeks ago

Awesome! I won! :)

yokitty yokitty 2 months, 2 weeks ago

lol i won but i didnt get 4 in a row xD

Hidden-Dragon Hidden-Dragon 2 months, 2 weeks ago

that is wicked

TimeFreeze TimeFreeze 2 months, 2 weeks ago

dude, just saying, you should seriously use flash.

Oldschooler2 Oldschooler2 2 months, 2 weeks ago

@TimeFreeze, the actual file, so you can play the flash game online and many people can see it. I think you already replied but I thought I'd ask.

(view all replies)
Oldschooler2 Oldschooler2 2 months, 2 weeks ago

Though I'm wondering; where the heck do you post actionscript stuff? Newsground or somewhere like that?

(view all replies)
Oldschooler2 Oldschooler2 2 months, 2 weeks ago

Like archmage?

(view all replies)
TimeFreeze TimeFreeze 2 months, 2 weeks ago

umm... I got connect 4, but it didn't say I won. Is there a problem with diagonal going up and left (or down and right)?

Oldschooler2 Oldschooler2 2 months, 2 weeks ago

Agh its so hard to keep up with the diagonals...this would have been SO MUCH EASIER if scratch had matrices. But no, they had to keep it simple for children. Jeez, I'm really peeved at the limitations of Scratch...

hamsandwitch678 hamsandwitch678 2 months, 3 weeks ago

Too easy.

Reamm Reamm 2 months, 3 weeks ago

Can I use the scripts for my game? I will give credit.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Do whatever man. There are no copyrights for my programming.

(view all replies)
Sceye Sceye 2 months, 3 weeks ago

the AI is GENIOUS (for a scratch game) it is pretty buggy... and stupid... but at least it can be considered a AI and not just a pile of scripts...

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Scratch is the worst for programming AI.

golfer3 golfer3 2 months, 3 weeks ago

I've won 4times in a row, its a bit too easy.

Paddle2See Paddle2See* 2 months, 3 weeks ago

I love your win checking logic! Starting at the last move position is a great idea and really simplifies things a lot. Marvelous!

Paddle2See Paddle2See* 2 months, 3 weeks ago

Just thinking about how an AI for this might work...I think one rule for sure would have to be look for 3 in a row with open ends and plug one of the ends if found.

Paddle2See Paddle2See* 2 months, 3 weeks ago

Excellent interface! The AI could be a bit sharper though...I was able to win by simply dropping 4 in a row along the bottom. Interestingly enough, it didn't play the same way next time. But I still was able to beat it with that method a number of times :)

Ideadude1999 Ideadude1999 2 months, 3 weeks ago

The best game i have ever played.

terminator68 terminator68 2 months, 3 weeks ago

Also, the AI got 3 in a row and won :P

(view all replies)
Oldschooler2 Oldschooler2 2 months, 3 weeks ago

1. Kiss does rock/heavy metal. 2. I'm 15, soon to be sixteen near the end of the month (9/29)

(view all replies)
Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Vinnie Vincent, a former lead guitarist of KISS (I'm a big fan of them).

(view all replies)
Oldschooler2 Oldschooler2 2 months, 3 weeks ago

I coded it incorrectly.

(view all replies)
Oldschooler2 Oldschooler2 2 months, 3 weeks ago

"what is that in your icon?" What are you talking about? My scratch pic?

(view all replies)
terminator68 terminator68 2 months, 3 weeks ago

I like it!

terminator68 terminator68 2 months, 3 weeks ago

P.S. I won :P

Kalininrussia1 Kalininrussia1 2 months, 3 weeks ago

Cool! I actually lost though...but still, cool!

Jens Jens* 2 months, 3 weeks ago

Great! It's harder to win against the yourt AI now, Good job!

Kileymeister Kileymeister 2 months, 3 weeks ago

why has no one seen this??? Its great! you shold have made front page a while ago :D

Jens Jens* 2 months, 3 weeks ago

Excellent! Nice GUI and fun to play. Feels a bit too easy to win against the machine, though

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Now try Jens, I fixed the AI. The problem was it did not start where you (Red) last made a move.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

I mean while reading your comment.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Thanks for commenting Jens. About the AI: sorry again for the simplicity, but I'll find a way to fix it. I actually just figured it out from your comment.

illusionist illusionist 2 months, 3 weeks ago

I won! 4th move! :) LOLZ

uberdeluxe uberdeluxe 2 months, 3 weeks ago

awsome u managed to make a computer i thought you would need another person and its the greatest

uberdeluxe uberdeluxe 2 months, 3 weeks ago

also thought the computer isnt very smart

Vista4563 Vista4563 2 months, 3 weeks ago

I have a bug here. I didn't connect 4, but I win anyways. The board looks like this: OOOOOOO OOOOOYO OOOOORO OOOOOYO OOOOOYO RRORRYO

Vista4563 Vista4563 2 months, 3 weeks ago

O= blank Y= COM R= P1

Vista4563 Vista4563 2 months, 3 weeks ago

Oh yeah, that was from top to bottom.

Ethereal_Discovery Ethereal_Discovery 2 months, 3 weeks ago

For you supporting me, Oldschooler2, you know you have my full support. Love-it and a Favorite this; Keep sharpening your programming talents.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Thanks; my parents always said "it pays to be kind. You won't get respect unless you give it to others".

weswesrock weswesrock 2 months, 3 weeks ago

The computer connected four diagionally, but I just kept playing and I connected 4 and it said "Red Wins!" Nice Job though.

cheddargirl cheddargirl 2 months, 3 weeks ago

It's good, but there's a glitch in which the computer can add pieces above the grid - I lost because the computer added a yellow piece above the grid to connect the four pieces. :(

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Unfortunately, the AI does that. I think the problem is checking if it can put it there or not...the way I coded it seemed right but it isn't...thanks for posting!

turtlewarrior turtlewarrior 2 months, 3 weeks ago

The computer's AI is pretty bad, but I guess it would be impossible to do better. Deserves a front page.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

In addition, I have very little idea on how to do a proper AI without making it even more complicated.

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

The real problem is I wanted to keep it simple for the AI. The coding is already cluttered, I didn't want to make it worse.

throughthefire throughthefire 2 months, 3 weeks ago

NICE!

randalpik randalpik 2 months, 3 weeks ago

The computer isn't very hard, but still, I would have a very hard time doing that.

steppenwulf steppenwulf 2 months, 3 weeks ago

omg awsome!! *high five* but the cp beat me with only 2 checkers. cuz one was all the way at the top, and then it put another on top of it beyong where it should be able to, and it won

Oldschooler2 Oldschooler2 2 months, 3 weeks ago

Yeah...I'm going to fix that.

pokemaster323 pokemaster323 2 months, 3 weeks ago

nice game

Alexzea2 Alexzea2 2 months, 3 weeks ago

lol. i was just playing that game!!

pokemaster323 pokemaster323 2 months, 3 weeks ago

you can go above the board, but no bugs otherwise

gamegeek118 gamegeek118 2 months, 3 weeks ago

Great job! i won!

Please Wait...