Skip to content
Snippets Groups Projects
Commit bbf1c974 authored by CHERCHEM Sarah's avatar CHERCHEM Sarah
Browse files

CloudFactory : Complete the methode generateRandomPosition

parent c230693f
No related branches found
No related tags found
No related merge requests found
Pipeline #41417 passed
......@@ -28,9 +28,10 @@ public class CloudFactory implements ElementFactory<Cloud>, PositionGenerator {
public int getCount() {
return 0;
}
@Override
public Position generateRandomPosition(int rowCount, int columnCount) {
return null;
int row = random.nextInt(rowCount);
int col = random.nextInt(columnCount);
return new Position(row, col);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment