APCS Java
Comparator Interface in Gridworld

Comparator Interface in Gridworld

APCS Java

About this episode

Here is a customized World for Gridworld where the message on the top is updated to show how many bugs there are and the location of the furthest Bug in the grid. You need to implement the Comparator interface for the grid world Bug class. You need to define a compare method that returns an int. Get the location of each Bug and use the compareTo method of Location. Here is the starter code: apcs.mathorama.com mpeg4 movie Quicktime movie

More from APCS Java

You can get a lot of insight in how coding works and how an Integrated Development Environment (IDE can help the process of compiling, and executing the code you write.

Installing the Java JDK 8 SE on Windows 10 for learning AP Computer Science A. Links mentioned in the video:mathorama.com/wikiSummer Assignment Links linksjava se jdk8 downloads.htmlhttps://bluej.org/…

Stage 3 Enemies are made and tested. Video Source code is at http://apcs.mathorama.com/index.php?n=Main.SimpleGameTutorial and the game is at http://www.mathorama.com/ChickenLittle.html If you missed…

Stage 2 of the Game Applet is making the player and have it be controlled with keyboard input. Source code is at apcs.mathorama.com and the game is at www.mathorama.com/ChickenLittle.html Video YouTub…

Stage 1: Load the art and sounds to your eclipse project, so you can export your game into a .jar file to easily upload to a web site. You can get to the game and the source files at: Link to Game Lin…