Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Johan Gustav Thrane-Nielsen
inf101.v20.sem2.losning
Commits
a71549e6
Commit
a71549e6
authored
Mar 31, 2020
by
Anna Maria Eilertsen
Browse files
removed todos in solution code grid
parent
63b22d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/inf101/v20/lab4/grid/Grid.java
View file @
a71549e6
...
...
@@ -38,13 +38,13 @@ public class Grid<T> implements IGrid<T>, Iterable<T>{
@Override
public
int
getHeight
()
{
return
height
;
// TODO: fyll inn
return
height
;
}
@Override
public
int
getWidth
()
{
return
width
;
// TODO: fyll inn
return
width
;
}
...
...
@@ -70,7 +70,7 @@ public class Grid<T> implements IGrid<T>, Iterable<T>{
if
(
y
<
0
||
y
>=
height
)
throw
new
IndexOutOfBoundsException
();
return
cells
.
get
(
coordinateToIndex
(
x
,
y
));
// TODO: fyll inn
return
cells
.
get
(
coordinateToIndex
(
x
,
y
));
}
@Override
...
...
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