v novembri
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi prspevky Menuprivate void generate() {
generateMines();
fillWithClues();
}
private void generateMines() {
Random generator = new Random();
int numberOfMines = 0;
while (numberOfMines != mineCount) {
int row = generator.nextInt(getRowCount());
int column = generator.nextInt(getColumnCount());
if (tiles[row][column] == null) {
tiles[row][column] = new Mine();
numberOfMines++;
}
}
}
private void fillWithClues() {
for (int row = 0; row < rowCount; row++) {
for (int column = 0; column < columnCount; column++) {
if (tiles[row][column] == null) {
tiles[row][column] = new Clue(countAdjacentMines(row, column));
}
}
}
}
Quote from: m@T0 on 24.02.2009, 17:40:52
cawte, co bolo na cviku rano o 7:30 co je s Lukasom Mikulom? ... nestihol som bus
Quote from: ApokalypS on 06.01.2009, 01:43:45to by som chapal keby mi nevytvorilo semafor ale ani sa tam nedostane a ked tak by vypisalo hlasku do err suboru.. to je na <|> totoQuote from: markus on 06.01.2009, 01:39:27uz tu o tom bola debata.. niekde nieje nieco ukoncene.. semafor, pamät alebo nieco.. a to potom kazi tvoje zadanie..
akoze nechapem tym veciam :-/ na ubunte mi to doma bezi v pohode a idem na hron abo to pokusim odovzdat cez ten sprosty server a Nejde... akoze...
Quote from: stamperlik on 04.01.2009, 19:49:15
caute,
nevie niekto poradit v com je chyba?
----------------------------------------------------
Runner:Spustam:
zadanie 2901 7141
runner: Maximalny cas behu 120 sekund
runner: Skutocny cas behu:1 s
runner:potomok ukonceny:nekorektne
runner: Pricinou ukoncenia bol signal 11
runner:Exit Status:0
runner: ukoncujem ostatne procesy:
runner:OK
runner:vraciam 131
doma na linuxe mi to bezi bez problemov