Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dongyanghu/greedy-snake-java

This is a greedy snake game implemented in Java.
https://github.com/dongyanghu/greedy-snake-java

awt awt-gui gui java javase swing swing-gui

Last synced: about 2 months ago
JSON representation

This is a greedy snake game implemented in Java.

Awesome Lists containing this project

README

        

# greedy-snake-java
[![GitHub release](https://img.shields.io/github/v/tag/DongyangHu/greedy-snake-java.svg?label=release)](https://github.com/DongyangHu/greedy-snake-java/releases)
[![GitHub Releases Downloads](https://img.shields.io/github/downloads/DongyangHu/greedy-snake-java/total.svg?logo=github)](https://somsubhra.github.io/github-release-stats/?username=DongyangHu&repository=greedy-snake-java)

[README](README.md) | [中文文档](README_zh.md)

![logo](logo/logo.jpg)

## What's greedy-snake-java
- This is a greedy snake game implemented in Java.
- Version of JDK is 1.8
- Developing Based on Java GUI, used the package of Swing/AWT

## Quick Start
- Please ensure that the JVM environment is installed properly before starting
- Download the jar file what name is `greedy-snake-java-xxx.jar` from [Release](https://github.com/DongyangHu/greedy-snake-java/releases)
- run the command `java -jar greedy-snake-java-xxx.jar` to start game.

## Introduction to functions
- The basic logic of Greedy Snake Game. Basic view generation and movement rules
- Scoreboard. Simple scoreboard functionality displaying the current score and length
- Multiple Level Foods. Foods of different levels are generated based on probabilities, with higher-scoring foods having lower probabilities. An expiration policy for foods is added, where higher-scoring foods have shorter lifespans
- Dynamic Difficulty Control. As the score increases, the snake's movement speed accelerates, making the game progressively more challenging
- Game Start/Pause Capability

## LICENSE
[greedy-snake-java](https://github.com/DongyangHu/greedy-snake-java) is licensed under [Apache-2.0](LICENSE)