Connect4 (actually k) Game in Java

General chat area for anything whatsoever

Moderator: Core Staff

Post Reply
User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Connect4 (actually k) Game in Java

Post by waywaaaard » January 12th, 2010, 12:40 am

Connect-k:

This is the result of a software engineering project which involves all UML-diagrams etc. It's written in Java so in order to play it you need to install the java-virtual-machine (get it here http://www.java.com/en/download/)

I included a start.bat for Windows-Users which will start the executable jar-file. GNU/Linux users must install the java packages and launch the game via bash: "java -jar 4-Gewinnt_localized.jar"

Description:
Ok this is not a normal Connect 4 game. You can choose the board size(rows and columns) and the amount of stones you need to win the game. You can also call it a Connect k on a m*n board.
  • toggle Sound
  • Power Play Modus (special stones like bomb, clone or the board will be rotated
  • Time Challenge Modus (you have only 2 seconds for your turn)
  • different Color-Schemes
  • difficulties (you should be able to beat it on easy)
  • Ai on hard is pretty good!
  • localization: english and german
  • all modes can be turned on and off during gameplay
  • dynamic resize and calculation of the panel
Image

Image

Image

Image


Download:

http://leviathan-design.de/connect4_loc ... alized.zip

includes all files

or

http://leviathan-design.de/connect4_localized/


Would be nice to get some feedback. Game isn't perfect but tomorrow is deadline for the project. And I can recommend the Power Play Modus
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
Ykarus
CJ Fan
CJ Fan
Posts: 133
Joined: May 14th, 2008, 7:49 pm
Location: Germany
Contact:

Re: Connect4 (actually k) Game in Java

Post by Ykarus » January 12th, 2010, 12:47 am

.. i helped him much :D















na tbh really good work
Image

I think my Radiant hates me -.-


.|GeR|'> Ykarus: again i cant jump ypur map ...
'Pnin. Designsâ„¢: ship tappens ^^
.|GeR|'> Ykarus: ship tappens...


-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Re: Connect4 (actually k) Game in Java

Post by Pedsdude » January 12th, 2010, 2:22 am

I helped with a tiny bit of English localisation, and convinced him to reduce the difficulty more because I couldn't even win on easy!
Image
Image

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Connect4 (actually k) Game in Java

Post by waywaaaard » January 12th, 2010, 11:27 am

Pedsdude wrote:I helped with a tiny bit of English localisation, and convinced him to reduce the difficulty more because I couldn't even win on easy!
yep thx peds, well the difficulty was easy I guess it was just you that couldn't beat our MiniMax-Algorythm with a SearchDepth of 5 ...
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests