Skip to content
Draft
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions SnakeGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@
* @version 1
*/
class SnakeGame implements Game {
public String getName() { return "Snake"; }
public String getName()
{ return "Snake";
}
public Optional<Integer> play() {
System.out.println("[Playing Snake - Placeholder]");
return Optional.empty();
System.out.println("This is a simple console"+
" version of the Snake game.");
System.out.println("The player controls a snake"+
" that moves around a grid,");
System.out.println("collecting food and growing in length.");
System.out.println("The game ends if the snake runs into itself");
System.out.println("or the edge of the grid");
return Optional.empty();
}
}