mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Made connect4 public method private
This commit is contained in:
@@ -100,7 +100,7 @@ public class Connect4 extends TurnBasedGame {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public char[][] makeBoardAGrid() {
|
private char[][] makeBoardAGrid() {
|
||||||
char[][] boardGrid = new char[this.getRowSize()][this.getColumnSize()];
|
char[][] boardGrid = new char[this.getRowSize()][this.getColumnSize()];
|
||||||
for (int i = 0; i < this.getRowSize()*this.getColumnSize(); i++) {
|
for (int i = 0; i < this.getRowSize()*this.getColumnSize(); i++) {
|
||||||
boardGrid[i / this.getColumnSize()][i % this.getColumnSize()] = this.getBoard()[i]; //this.getBoard()Grid[y -> row] [x -> column]
|
boardGrid[i / this.getColumnSize()][i % this.getColumnSize()] = this.getBoard()[i]; //this.getBoard()Grid[y -> row] [x -> column]
|
||||||
|
|||||||
Reference in New Issue
Block a user