Page 19 of 34 FirstFirst ... 91617181920212229 ... LastLast
Results 181 to 190 of 335
  1. #181

    Default Re: Java Programming


    @jerx mas nindot cguro if imong buwagon ang imong presentation(GUI) ug ang imong logic nga part sa program into lain lain nga classes.. i would help you out and debug your code for you pero busy pa kaau ko karon nga time kay nag prepare ko para sa jlpt this sunday then daghan sad kaau ko deadlines sa work. inig monday if naa pa ni imong problem, if wala pa ni ma solve.. tabangan tika solve ani. nakahimo na man ko tic tac toe kadtong wala ko lingaw pero na delete man cguro nako kay dili na nako makit an.. good luck bro!

  2. #182

    Default Re: Java Programming

    actually this is the sole problem of my program,

    Code:
    public void mouseClicked(MouseEvent e){
    	 if(isDone){
    		 resetGame();
    		 }
    	 JLabel clicked = (JLabel)e.getSource();
    	 next:
    	 for(int i=0; i<3; i++){
    
    		 	for(int j=0; j<3; j++ ){
    
    			 if(clicked == grid[i][j]){
    
    					if(clicked != grid[i][j]){
    						 status.setText("Invalid Move");
    						 break next;
    						 }
    
    				  if((clicked == grid[i][j]) && (xTurn==false)){
    						clicked.setText("x");
    						clicked.setForeground(Color.RED);
    						game[i][j] = 'x';
    
    					 	}
    					else{
    						clicked.setText("o");
    						clicked.setForeground(Color.BLUE);
    						game[i][j] = 'o';
    						}
    					xTurn = true;
    					numClicks++;
    					gameOver();
    					}// end of if.
    				}//end of inner loop
    
    		 }//end of outer loop
    
    
    	 }//end of mouseClicked
    sa mouseEvent ra jud nalikoy akong program!! sorry kung likoy gamay ang pag post nako sa katong complete jud niya nga code! pero diha ra jud ko naglibog! kay everytime mo click ko, ang O turns raman pirmi mo gawas dli namn mogawas ang X turns..!! dli sad ba kaha ni sa akong gameOver() nga function! i'm really confused unsa na juy problema ani! ive been simulating this program manually! pero wla jud!! tsk..tsk..tsk..tsk can u help me whith this mga bro!! tanx...

  3. #183

    Default Re: Java Programming

    kay wala man nimo gi change ang xTurn to false bay.. permi lang true..then ang condition para ma turn sa X is if false ang imong xTurn nga variable..

    i try ug
    Code:
    xTurn = !xTurn;
    instead of
    Code:
    xTurn = true;

    by the way, i think dili na musulod ani nga code..
    Code:
    if(clicked != grid[i][j]){
      status.setText("Invalid Move");
      break next;
    }
    kay naa na man ni..
    Code:
    if(clicked == grid[i][j]){

  4. #184

    Default Re: Java Programming

    lamat jud kay bai!!! *****a nimo oi!! hehehehehehe

    tanx..jud kaayo!!!

  5. #185

    Default Re: Java Programming

    ang ako nalng problem kay ang pag stop sa game kong nanay nakadaog!! pero ako nalng ani oist! sayon2x ra man cguro na!!

    THANX JUD KAAYO GUYS! SA INYONG PAGTAGAD SA AKONG PROGRAM!!! I REALLY APPRECIATE YOUR CONCERNS!!!!

    bai CEN, bai ZENGATSU salamat jud kay ninyo guys!! MATSALAM!!

  6. #186

    Default Re: Java Programming

    np bay! good luck sa imong tic tac toe! hehehe... :mrgreen:

  7. #187

    Default Re: Java Programming

    for java newbies visit this site javapassion. Daghan siya og tutorial nga dali ra kaau kat-onan.

  8. #188

    Default Re: Java Programming

    lisora oi kinsa ganahan manudlo... hihihih

  9. #189

    Default Re: Java Programming

    @jancemsy: Saun ra man ang Java. Click this link ---> javapassion. Naay beginner level nga tutorial available.

  10. #190

    Default Re: Java Programming

    na libog man kos sa java API nya mao raman akong gilisuran sa java... mo basag API

  11.    Advertisement

Page 19 of 34 FirstFirst ... 91617181920212229 ... LastLast

Similar Threads

 
  1. JAVA PROGRAMMING *****
    By bardnekom in forum Programming
    Replies: 20
    Last Post: 04-18-2013, 12:51 PM
  2. MOVED: JAVA PROGRAMMING *****
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 03-23-2008, 02:43 AM
  3. Java programming help pls...
    By mr_gwen in forum Programming
    Replies: 6
    Last Post: 11-03-2006, 12:30 AM
  4. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM
  5. MOVED: Java Programming
    By BadDudes in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-28-2006, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top