A downloadable game for Windows, macOS, Linux, and Android

Download NowName your own price

public enum Planet {

     MERKUR(1, 0), VENUS(2, 0), ERDE(3, 1), MARS(4, 2),

     JUPITER(5, 95), SATURN(6, 146), URANUS(7, 27), NEPTUN(8, 14);

    private final int position;

    private final int numberOfMoons;

    private Planet(int position, int numberOfMoons) {

        this.position = position;

       this.numberOfMoons = numberOfMoons;

    }

    public int getNumberOfMoons() {

        return numberOfMoons;

    }

    public boolean isCloserToSunThan(Planet other) {

        return this.position < other.position;

    }

}

Published 5 days ago
StatusReleased
PlatformsWindows, macOS, Linux, Android
AuthorBardon
GenreEducational

Download

Download NowName your own price

Click download now to get access to the following files:

Planet.zip 478 kB

Leave a comment

Log in with itch.io to leave a comment.