Skip to content
Snippets Groups Projects
Select Git revision
  • 982f8a8290f5ab87a490437f2e2a6482fa62cd24
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

CellularAutomatonSimulationTest.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CoordinateIterator.java 1.17 KiB
    package matrix;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    /**
     * An {@link Iterator} for generating 2D {@link Coordinate}s within a specified width and
     * height range.
     */
    class CoordinateIterator implements Iterator<Coordinate> {
    
        /**
         * Creates a new {@link CoordinateIterator} with the specified width and height.
         *
         * @param width  The width of the coordinate range.
         * @param height The height of the coordinate range.
         */
        public CoordinateIterator(int width, int height) {
            // TODO: à compléter
        }
    
        /**
         * Checks if there are more {@link Coordinate}s to iterate over.
         *
         * @return true if there are more {@link Coordinate}s; otherwise, false.
         */
        @Override
        public boolean hasNext() {
            // TODO: à compléter
            return false;
        }
    
        /**
         * Returns the next {@link Coordinate} in the iteration.
         *
         * @return The next {@link Coordinate} in the iteration.
         * @throws NoSuchElementException if there are no more {@link Coordinate}s to iterate over.
         */
        @Override
        public Coordinate next() {
            // TODO: à compléter
            return null;
        }
    }