User Profile

Collapse

Profile Sidebar

Collapse
KTsquare
KTsquare
Last Activity: Nov 12 '08, 01:54 PM
Joined: Nov 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • KTsquare
    replied to Connect 4 Problems
    in Java
    [code=java]//Program to do Connect 4.
    //by Neil Broadbent

    import java.io.Buffere dReader;
    import java.io.InputSt reamReader;
    import java.io.IOExcep tion;
    import java.util.*;
    import NeilClass.*;


    public class k
    {
    final static int GRID_WIDTH=7;
    final static int GRID_HEIGHT=5;

    public static boolean GAME_OVER=false ;
    public...
    See more | Go to post
    Last edited by Nepomuk; Nov 10 '08, 10:37 PM. Reason: Please use [CODE] tags

    Leave a comment:


  • KTsquare
    started a topic Connect 4 Problems
    in Java

    Connect 4 Problems

    Code:
    import java.util.Scanner;
    public class assignment{
    public static void main(String args[]){
    String getError;
    int result;
    int f,s,q,em=0;
    int c0=0,c1=0,c2=0,c3=0,c4=0,c5=0,c6=0;
    int drawBoard[][]=new int[6][7];
    
    while (em==0){
    System.out.println("5 | "+drawBoard[5][0]+" "+drawBoard[5][1]+" "+drawBoard[5][2]+" "+drawBoard[5][3]+"
    ...
    See more | Go to post
    Last edited by JosAH; Nov 9 '08, 08:17 AM. Reason: added [code] ... [/code] tags

  • KTsquare
    started a topic Connect 4
    in Java

    Connect 4

    Does any handsome man have a source code of this game which is using scanner to play ( By entering 1 or 2 to play )

    Thank you for your help =)
    See more | Go to post
No activity results to display
Show More
Working...