Skip to content

A simple snake game written in Java using the swing library

Notifications You must be signed in to change notification settings

hasahmed/simple-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 18, 2024
16803a5 · Dec 18, 2024

History

77 Commits
Jan 13, 2020
Dec 22, 2017
Oct 2, 2017
Dec 22, 2017
Dec 18, 2024
Dec 22, 2017
Dec 20, 2017
Jan 6, 2020
Dec 20, 2017
Dec 20, 2017
Dec 22, 2017
Dec 22, 2017

Repository files navigation

Simple Snake

A simple snake game in pure java

To install using homebrew type brew cask install hasahmed/hbrew/simple-snake

To install on any other platform see the development section

Development

Building

Ant is required for building.

Clone the repo and from the root directory run ant jar. This builds the application and puts it in a jar file in dist/jar/. To run the jar from a command line enter java -jar dist/jar/simplesnake.jar (Windows java -jar .\dist\jar\simplesnake.jar)

Building MacOS Application

The application can be packaged into a MacOS .app bundle. Using a *nix system you can run ./buildall. For other systems you can copy the code from these scripts and run them in your command prompt without the shebang line.

Getting Started

The main entry point to the application is the Snake.java. To begin understanding the application, start there.