twoDimRoll

This commit is contained in:
Tim Tersch
2020-08-31 08:47:01 +02:00
parent e96ae83b7e
commit fe1dca6d7a

View File

@@ -86,7 +86,13 @@ public class Arrays {
* @see Wuerfel#werfen() * @see Wuerfel#werfen()
*/ */
public void twoDimRoll( Wuerfel[][] pArray ) { 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();
}
}
}
} }
/** /**