My game :)
Hey people,
I've made this game when I was 15, and only today I learnt how to put it up on the net and make it available for everyone... so here it is!
(I know it's not that hard to beat the computer, but we only had two weeks for that project..)
deanat78.50megs.com/Connect4.html
[307 byte] By [
deanat78a] at [2007-10-2 8:43:54]

Can't see it. Does it require an older jre or anything?
hmmm , I made it in 1.4.2, but now I have JRE 5 and it works.. and I tried on my bro's computer with the latest JRE and it worked... maybe u just went there when I was experimenting with my site because for 10 minuts I was screwing around with everything there..
Java 1.4.2_09 I'm getting:
java.lang.UnsupportedClassVersionError: Connect4 (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:633)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1970)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:562)
at sun.applet.AppletPanel.run(AppletPanel.java:299)
at java.lang.Thread.run(Thread.java:552)
it works for me. (I'm running 1.5 update 6) Not bad for 15 yrs old. Nice job!
Yeah, I upgrded to 1.5 and it works..Very good, mind you the computer AI isn't great :p I managed to win despite being worthless at the game :)
I was in Florida for Christmas break (came back today, just before school is back...:(
so I couldn't really be here...
Not that it matters much now, since I already got my 98 in that course, but how would I make the AI better? What it can do in the highest level is make double traps and detect human double traps so it blocks it. I guess the next step would be to think multiple turns ahead, to set up a double trap or to see how the player can potentially set up a double trap in a few turns and block that...
Yeah, all those sound good if you think you can do them?
Ya it should be very easy.... for example, to construct a double trap, the computer should do something like this:
for every one of the 7 columns, put a piece, and then do level6 to see if when the piece is there (ie. next turn) there is a double trap available, and the same goes for blocking a player's potential trap
Yeah, that would be cool, mind you. You don't want to make it impossible for the human to win either :pThe other thing you could do, would be to let the computer play itself?
I've never thought really of making a "demo"... but actually I kind of did this once, when we had this project, we had a tournament for fun to see who has the best AI, so me and my opponent would both play the hardest level of our games and in each turn we would play what the other person's computer played
and my game hd a record of 6-0 :P
(it's a bit sad that that was the best AI in my school... but I'm not comlaining)