Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * CollapseConsole is the text-based console user interface to the Collapse game.
- * The main() method starts the application running using System.in and System.out.
- * CollapseConsole can also return the top five high scores from the Hall of Fame.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class CollapseConsole
- {
- /** How many hall of fame entries to return */
- public final static int kHallSize = 5;
- /** Entry point for the application.
- *
- * @param args ignored
- */
- public static void main(String[] args)
- {
- CollapseConsole app = new CollapseConsole();
- app.setIOsources(new InputStreamReader(System.in),
- new OutputStreamWriter(System.out));
- app.run();
- }
- /** Construct a new instance of this class.
- * Create the game components and initialize them,
- * create the user interface and connect it to the game.
- */
- public CollapseConsole()
- {
- }
- /** Set input/output sources for Stream-based user interfaces.
- * @param rdr A Reader from which user input is obtained.
- * @param wtr A Writer to which program output is displayed.
- */
- public void setIOsources(Reader rdr, Writer wtr)
- {
- }
- /** Run the console user interface, using the i/o streams provided by
- * setIOsources();
- * @pre setIOsources() has been called.
- */
- public void run()
- {
- }
- /** Return a string representation of the top five high scores.
- * @return string is the top scores, one per line, with the
- * score and name (in that order), separated by one or more blanks.
- * Name is twenty characters max. Leading blanks are allowed.
- */
- public String getHighScores()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement