Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
battleships
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
patrick.gustard-sm
battleships
Commits
765f8d73
Commit
765f8d73
authored
Aug 04, 2019
by
patrick.gustard-sm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed while loop
parent
efeed95b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
Main.java
src/battleship/Main.java
+5
-13
No files found.
src/battleship/Main.java
View file @
765f8d73
...
@@ -157,14 +157,6 @@ public class Main extends Application {
...
@@ -157,14 +157,6 @@ public class Main extends Application {
}
}
public
static
void
enemySetup
()
{
enemyshipnum
=
0
;
}
public
static
void
enemyPlace
()
{
public
static
void
enemyPlace
()
{
...
@@ -207,12 +199,12 @@ public class Main extends Application {
...
@@ -207,12 +199,12 @@ public class Main extends Application {
public
static
void
startGame
(){
public
static
void
startGame
(){
enemy
Setup
()
;
enemy
shipnum
=
0
;
While
(
enemyshipnum
<=
8
)
while
(
enemyshipnum
<=
8
);
{
{
Enemyplace
()
enemyPlace
();
}
}
setup
=
false
;
setup
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment