| 
     
     | 
    
      
        
          | 
          | 
         
        
         | 
                     
	  |           
         
        
           Terence Hill
             from Germany on 2009-09-17 18:49 [#02327539]
         Points: 2070 Status: Lurker
  |  
| 
 
     
 
   | 
 can you find the bug? i'm tired.
  void step(){ if(elements.size() > 0){	 if(stepper.length > 0){ for(int i = 0; i < stepper.length; i++){ if(done[i] != 1){ GridWalker walkie =  (GridWalker)elements.get(stepper[i]);  if(walkie.walking() == false){ walkie.start(); } if(walkie.done()){ walkie.shtop(); emit(stepper[i]); stepper[i]++; if(stepper[i] >= elements.size()){ stepper[i] = 0; done[i] = 1; } } } } for(int i = 0; i < done.length; i++){ if(done[i] == 1){ if(i == 0){ if(done.length > 1){ done = subset(done, 1); stepper = subset(stepper, 1); } } if(i == done.length-1 && done.length > 1){ done = subset(done, 0, done.length-1); stepper = subset(done, 0, stepper.length-1); } if(i > 0 && i < done.length-1){ int[] b1 = subset(done, 0, i); int[] b2 = subset(done, i+1, done.length-1-i); done = b1; done = splice(done, b2, done.length-1);
  int[] i1 = subset(stepper, 0, i); int[] i2 = subset(stepper, i+1, stepper.length-1-i); stepper = i1; stepper = splice(done, i2, stepper.length-1); } } } } } /* println("**"); println("done.length: "+done.length+"||"); if(done != null){ for(int i = 0; i < done.length; i++){ print("["+done[i]+"]"); } } println(" "); println("**"); */ }
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           pulseclock
             from Downtown 81 on 2009-09-17 18:54 [#02327541]
         Points: 6015 Status: Lurker
  |  
| 
 
     
 
   | 
int[] i1 = subset(stepper, 0, i);
  it should be
  into 1 asshole = upset(stupor, lol);
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           mohamed
             from the turtle business on 2009-09-17 19:07 [#02327543]
         Points: 31613 Status: Regular | Show recordbag
  |  
| 
 
     
 
   | 
("**")
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           khrimson
             from the fridge on 2009-09-18 07:41 [#02327615]
         Points: 1759 Status: Regular | Followup to pulseclock: #02327541
  |  
| 
 
     
 
   | 
hahaha
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           Terence Hill
             from Germany on 2009-09-18 08:47 [#02327633]
         Points: 2070 Status: Lurker
  |  
| 
 
     
 
   | 
it works though
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           MetallicaDude
             from the stazhole on 2009-09-18 10:29 [#02327678]
         Points: 3644 Status: Regular
  |  
| 
 
     
 
   | 
i found it it is a stick bug
  |
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           mohamed
             from the turtle business on 2009-09-18 10:33 [#02327679]
         Points: 31613 Status: Regular | Show recordbag
  |  
| 
 
     
 
   | 
earwig bug
  i++){
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
           mohamed
             from the turtle business on 2009-09-18 10:34 [#02327680]
         Points: 31613 Status: Regular | Show recordbag
  |  
| 
 
     
 
   | 
earwig bug cub
  0){	
 
  
         
	  | 
         
        
         | 
           
	  | 
         
        
         
         
Messageboard index 
              
         
	 
	  |           
         
        
       
       | 
     
         
        
        
     | 
	
 
 
 
 
 
 
 
 
  |