Browse Source

changed the method server host

Yesoda Sanka 6 years ago
parent
commit
a97e977969
2 changed files with 6 additions and 4 deletions
  1. 4
    2
      WriteLoops.java
  2. 2
    2
      package.bluej

+ 4
- 2
WriteLoops.java View File

179
         int highestScore = 236;
179
         int highestScore = 236;
180
         int currentScore = gameNextScore();
180
         int currentScore = gameNextScore();
181
         int runningScore = 0;
181
         int runningScore = 0;
182
-        while(runningScore<highestScore)
182
+        while(runningScore<=highestScore)
183
         {
183
         {
184
             runningScore=runningScore+currentScore;
184
             runningScore=runningScore+currentScore;
185
             w=w+1;
185
             w=w+1;
186
+            currentScore=gameNextScore();
187
+            
186
         }
188
         }
187
 
189
 
188
         // do your while loop here
190
         // do your while loop here
228
         }
230
         }
229
         if(result==false)
231
         if(result==false)
230
         {
232
         {
231
-            sendEmergencyText("help","adminPhoneNumber");
233
+            sendEmergencyText("Help","adminPhoneNumber");
232
             tryServerRestart("","");
234
             tryServerRestart("","");
233
             w=w+1;
235
             w=w+1;
234
         }
236
         }

+ 2
- 2
package.bluej View File

6
 dependency2.to=WriteLoops
6
 dependency2.to=WriteLoops
7
 dependency2.type=UsesDependency
7
 dependency2.type=UsesDependency
8
 editor.fx.0.height=709
8
 editor.fx.0.height=709
9
-editor.fx.0.width=688
10
-editor.fx.0.x=464
9
+editor.fx.0.width=1280
10
+editor.fx.0.x=0
11
 editor.fx.0.y=23
11
 editor.fx.0.y=23
12
 objectbench.height=83
12
 objectbench.height=83
13
 objectbench.width=740
13
 objectbench.width=740