Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RushPascal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bariatti Francesco
RushPascal
Commits
49cb47eb
There was a problem fetching the pipeline summary.
Commit
49cb47eb
authored
8 years ago
by
Carry Morgane
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://gitlab.insa-rennes.fr:16022/francesco-bariatti/RushPascal
parents
5a32fb26
e90e05d1
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model/Board.java
+13
-13
13 additions, 13 deletions
src/model/Board.java
with
13 additions
and
13 deletions
src/model/Board.java
+
13
−
13
View file @
49cb47eb
...
...
@@ -101,20 +101,20 @@ public class Board {
return
sb
.
toString
();
}
public
int
[][]
getBoard
()
{
return
board
;
public
int
getValue
(
int
x
,
int
y
)
{
return
board
[
x
][
y
];
}
public
void
setBoard
(
int
[][]
board
)
{
this
.
board
=
board
;
}
public
int
getValue
(
Position
pos
)
{
return
board
[
pos
.
getX
()][
pos
.
getY
()];
}
public
void
setValue
(
int
x
,
int
y
,
int
value
)
{
board
[
x
][
y
]
=
value
;
}
public
void
setValue
(
Position
pos
,
int
value
)
{
board
[
pos
.
getX
()][
pos
.
getY
()]
=
value
;
}
public
static
void
main
(
String
[]
args
)
throws
IOException
{
Board
test
=
new
Board
(
"testlevel.txt"
);
System
.
out
.
println
(
test
.
toString
());
test
.
cars
[
0
].
moveForward
(
test
.
board
,
1
);
System
.
out
.
println
(
test
.
toString
());
}
}
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