forked from IF-LK-2020/arrays2
twoDimRoll
This commit is contained in:
@@ -86,7 +86,13 @@ public class Arrays {
|
||||
* @see Wuerfel#werfen()
|
||||
*/
|
||||
public void twoDimRoll( Wuerfel[][] pArray ) {
|
||||
// TODO: implementieren
|
||||
for (int i = 0; i < pArray.length; i++) {
|
||||
for (Wuerfel w : pArray[i]) {
|
||||
if (w != null) {
|
||||
w.werfen();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user