Skip to content

FRCroboSam/GoogleSnake-Code-your-own

Repository files navigation

GoogleSnake Create Your Own Project AP CS A

Team: Samuel Wang Pre-req: Java 17

How to

  • press arrow keys(not left) to start playing (each key rotates the snake in the correct direction)
  • Game over when the snake head hits itself (blue snake body) or the snake travels out of bounds (the checkerboard)

Purpose

  • Play Snake with arrow keys, eat the apples (red boxes) to increase score

Reqs

  • User input: arrow keys to move snake (GamePanel.java), entering name to save score (
  • Hashmap - used for scoreBoard (name: score), found in snake.java
  • Serialization - scores are saved locally after user dies in game
  • Exception Handling - try, catch used in serialization in case there is no leaderboard present (snake.java constructor)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages