Demonisch Connect 4 TBNGprogramme, source code and either web applet or downloable jar application
Programme
Screen shot
Source Code
- c4.java (main)
- c4Game.java (the game canvas and handles mouse clicks)
- c4GUI.java (the root pane)
- c4PlayerMatrix.java (keeps track of what piece is in each cell, and the rules of the game)
- tbngAbstractChatPanel.java (offers everything needed to make a normal chat panel)
- tbngAbstractBoardPlayerMatrix.java (extends the root player matrix for a board game such as chess)
- tbngAbstractChessBoard.java (a standard 8 * 8 chess board)
- tbngAbstractConnectionPanel.java (offers everything needed to make a normal connection panel)
- tbngAbstractGrid.java (extra painting information for a grid)
- tbngAbstractPlayerMatrix.java (handles the generic options for a 2D array representing a game)
- tbngAbstractPlayingArea.java (handles the generic painting code for a canvas game)
- tbngConnection.java (handles the network connection between two computers)
- tbngGameInterface.java (interface classes should extend so the game canvas can talk to it)
- tbngNetworkInterface.java (interface classes should extend so a 2 player network game can be played)
- tbngProtocol.java (the simple object that gets passed between each computer in the network)
- tbngStandardStyleChatPanel.java (a setup chat panel that can be plugged into a gui)
- tbngStandardStyleConnectionPanel.java (a setup connection panel that can be plugged into a gui)
- tbngStandardStyleGUI.java (a setup GUI that only leaves the canvas game and player matrix for the programmer to design)