diff --git a/bin/uebung05/logistics/demo.class b/bin/uebung05/logistics/demo.class new file mode 100644 index 0000000..33773c7 Binary files /dev/null and b/bin/uebung05/logistics/demo.class differ diff --git a/bin/uebung09/chess/Board.class b/bin/uebung09/chess/Board.class index 0c92eac..b8dbe64 100644 Binary files a/bin/uebung09/chess/Board.class and b/bin/uebung09/chess/Board.class differ diff --git a/bin/uebung09/chess/ChessApp.class b/bin/uebung09/chess/ChessApp.class index b0686be..e0ba0af 100644 Binary files a/bin/uebung09/chess/ChessApp.class and b/bin/uebung09/chess/ChessApp.class differ diff --git a/bin/uebung09/chess/Color.class b/bin/uebung09/chess/Color.class index 68ceb58..64b6e5b 100644 Binary files a/bin/uebung09/chess/Color.class and b/bin/uebung09/chess/Color.class differ diff --git a/bin/uebung09/chess/Knight.class b/bin/uebung09/chess/Knight.class index 8bc030e..c65cf7f 100644 Binary files a/bin/uebung09/chess/Knight.class and b/bin/uebung09/chess/Knight.class differ diff --git a/bin/uebung09/chess/Piece.class b/bin/uebung09/chess/Piece.class index 9b266d6..d295d67 100644 Binary files a/bin/uebung09/chess/Piece.class and b/bin/uebung09/chess/Piece.class differ diff --git a/bin/uebung09/chess/Queen.class b/bin/uebung09/chess/Queen.class index fd98e42..7e32a3d 100644 Binary files a/bin/uebung09/chess/Queen.class and b/bin/uebung09/chess/Queen.class differ diff --git a/bin/uebung09/collection/Set.class b/bin/uebung09/collection/Set.class index 90e4147..1d14a31 100644 Binary files a/bin/uebung09/collection/Set.class and b/bin/uebung09/collection/Set.class differ diff --git a/bin/uebung09/collection/SetFactory.class b/bin/uebung09/collection/SetFactory.class index 032e4b2..4914357 100644 Binary files a/bin/uebung09/collection/SetFactory.class and b/bin/uebung09/collection/SetFactory.class differ diff --git a/bin/uebung09/iterator/Array2dIterator.class b/bin/uebung09/iterator/Array2dIterator.class new file mode 100644 index 0000000..6081202 Binary files /dev/null and b/bin/uebung09/iterator/Array2dIterator.class differ diff --git a/src/uebung09/chess/Board.java b/src/uebung09/chess/Board.java index 2cfa92a..1d8cfe1 100644 --- a/src/uebung09/chess/Board.java +++ b/src/uebung09/chess/Board.java @@ -1,9 +1,10 @@ -package chess; +package uebung09.chess; import java.util.ArrayList; import java.util.List; +import uebung09.iterator.Array2dIterator; -public class Board { +public class Board extends Array2dIterator { private final Piece[][] field = new Piece[8][8]; private final List pieces = new ArrayList<>(); diff --git a/src/uebung09/chess/ChessApp.java b/src/uebung09/chess/ChessApp.java index 3b6442c..634d9f9 100644 --- a/src/uebung09/chess/ChessApp.java +++ b/src/uebung09/chess/ChessApp.java @@ -1,4 +1,4 @@ -package chess; +package uebung09.chess; import java.io.InputStream; import java.util.NoSuchElementException; diff --git a/src/uebung09/chess/Color.java b/src/uebung09/chess/Color.java index 3d5151b..03e10a8 100644 --- a/src/uebung09/chess/Color.java +++ b/src/uebung09/chess/Color.java @@ -1,4 +1,4 @@ -package chess; +package uebung09.chess; public enum Color { black, white diff --git a/src/uebung09/chess/Knight.java b/src/uebung09/chess/Knight.java index 815cfee..25e7ede 100644 --- a/src/uebung09/chess/Knight.java +++ b/src/uebung09/chess/Knight.java @@ -1,4 +1,4 @@ -package chess; +package uebung09.chess; import static java.lang.Math.abs; diff --git a/src/uebung09/chess/Piece.java b/src/uebung09/chess/Piece.java index 5b6a716..066cb15 100644 --- a/src/uebung09/chess/Piece.java +++ b/src/uebung09/chess/Piece.java @@ -1,4 +1,4 @@ -package chess; +package uebung09.chess; public abstract class Piece { private Color color; diff --git a/src/uebung09/chess/Queen.java b/src/uebung09/chess/Queen.java index d75f4b6..ed07b49 100644 --- a/src/uebung09/chess/Queen.java +++ b/src/uebung09/chess/Queen.java @@ -1,4 +1,4 @@ -package chess; +package uebung09.chess; import static java.lang.Integer.signum; import static java.lang.Math.abs; diff --git a/src/uebung09/collection/Set.java b/src/uebung09/collection/Set.java index cdcb82d..00171e8 100644 --- a/src/uebung09/collection/Set.java +++ b/src/uebung09/collection/Set.java @@ -1,4 +1,4 @@ -package collection; +package uebung09.collection; /** * A set of elements that does not contain any element twice. diff --git a/src/uebung09/collection/SetFactory.java b/src/uebung09/collection/SetFactory.java index 1359aca..f8cfeb3 100644 --- a/src/uebung09/collection/SetFactory.java +++ b/src/uebung09/collection/SetFactory.java @@ -1,4 +1,4 @@ -package collection; +package uebung09.collection; public class SetFactory { diff --git a/src/uebung09/iterator/Array2dIterator.java b/src/uebung09/iterator/Array2dIterator.java new file mode 100644 index 0000000..91909d4 --- /dev/null +++ b/src/uebung09/iterator/Array2dIterator.java @@ -0,0 +1,25 @@ +package uebung09.iterator; + +import java.util.Iterator; + +public class Array2dIterator implements Iterator{ + + + public Array2dIterator(T[][] aaray) { + + } + + @Override + public boolean hasNext() { + // TODO Auto-generated method stub + return false; + } + + @Override + public T next() { + // TODO Auto-generated method stub + return null; + } + + +}