19 July 2008
Connect4 in JAVA
I was going to "Ras El Hekma" (somewhere near "Marsa Matrooh") on a Vacation, but since I'm a geek I took my laptop with me and decided to make a Connect4 game during the 3-hour travel so we can play Connect4 there at night, I started to make it using JAVA and planned to make a 3D version later.
Checking weather a player won or not was harder than I thought since I was using a two dimensional char array of 'X' and 'O' so I was trying to avoid having an ArrayIndexOutOfBoundsException.
This game is programmed with JAVA so you don't need the "DirectX for XNA Games", all you need is JRE(Java Runtime Enviroment) or JDK(Java Developer Kit)
I also included it's code so you can view it and change it as mush as you like ;)
Back to my Dev Blog ->