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

https://github.com/carlescn/snake_game

An implementation of the classic Snake game using Pygame and NumPy.
https://github.com/carlescn/snake_game

numpy pygame python snake-game

Last synced: 2 months ago
JSON representation

An implementation of the classic Snake game using Pygame and NumPy.

Awesome Lists containing this project

README

          

# ![icon](icon.png) Snake

[![GPLv3 license](https://img.shields.io/badge/License-GPLv3.0-blue.svg)](https://github.com/carlescn/rclone-jobman/blob/main/LICENSE)
[![made-with-python 3.10.9](https://img.shields.io/badge/Made%20with-VS%20Code-1f425f.svg?logo=visualstudio)](https://code.visualstudio.com/)
[![Python 3.10.9](https://img.shields.io/badge/Python-3.10.9-darkgreen.svg?logo=python)](https://www.python.org/)
[![Pygame 2.1.2](https://img.shields.io/badge/Pygame-2.1.2-darkgreen.svg?logo=pygame)](https://www.pygame.org/)
[![NumPy](https://img.shields.io/badge/NumPy-1.24.1-darkgreen.svg?logo=numpy)](https://numpy.org/)

This the classic Snake game, implemented using Pygame and NumPy arrays.

I tried imitating the game Snake II of old Nokia phones.

You control the snake with the arrow keys
or by clicking / tapping the edges of the screen.

You can try it here:
(note: on this web version the beep sound doesn't play most of the times.
I'll have to figure it out.)

![screenshot](screenshots/latest.png)

## To do

- Figure how the scoring system worked on Snake II.
- Figure out the frequency of the bonus on Snake II.
- Make a menu for selecting the speed.
- Fix the sound problem on the web version.