Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kallel_Mohamed_Firefighter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KALLEL Mohamed ali
Kallel_Mohamed_Firefighter
Commits
fa1fe3cd
Commit
fa1fe3cd
authored
1 year ago
by
KALLEL Mohamed ali
Browse files
Options
Downloads
Patches
Plain Diff
Update file FireFigther.java
parent
6b75567a
No related branches found
No related tags found
No related merge requests found
Pipeline
#24856
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/model/Element/FireFigther.java
+2
-3
2 additions, 3 deletions
src/main/java/model/Element/FireFigther.java
with
2 additions
and
3 deletions
src/main/java/model/Element/FireFigther.java
+
2
−
3
View file @
fa1fe3cd
...
...
@@ -23,9 +23,8 @@ public class FireFigther implements ModelElement{
}
Position
newPositionStep
=
neighborClosestToFire
(
position
,
board
,
rowCount
,
columnCount
);
extinguish
(
newPositionStep
,
board
);
addElement
(
newPositionStep
,
board
,
new
MotorisedFirefigther
());
removeElement
(
position
,
board
,
new
MotorisedFirefigther
());
removeElement
(
position
,
board
,
new
FireFigther
());
addElement
(
newPositionStep
,
board
,
new
FireFigther
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment