Skip to content
Snippets Groups Projects
Commit b51c007f authored by Aaro Askala's avatar Aaro Askala
Browse files

Replace peliAlusta.java

parent 124381c4
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,11 @@
public class peliAlusta extends laivanUpotus {
private int osumia;
private int torpeedojenMaara;
private String[][] taulukko = new String[8][8];
public peliAlusta(int osumia) {
super();
this.osumia = osumia;
}
......@@ -28,7 +31,11 @@ public class peliAlusta extends laivanUpotus {
}
}
public void luoPelialusta(String[][] taulukko) {
public String[][] annaTaulukko(){
return taulukko;
}
public void luoPelialusta() {
for (int r = 0; r < taulukko.length; r++) {
for (int c = 0; c < taulukko[0].length; c++) {
taulukko[r][c] = "~";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment