Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kriskw1999/ratatui-snake


https://github.com/kriskw1999/ratatui-snake

ratatui rust

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Ratatui Snake

## Preview

https://github.com/kriskw1999/ratatui-snake/assets/71312948/027db3fa-c295-47ad-969d-39018b2cbeca

## Description

This is a simple snake game made designed using Ratatui as TUI library and Rust as programming language.

## How to play

Download the binary from [here](https://github.com/kriskw1999/ratatui-snake/releases)

Or you can install [from the AUR](https://aur.archlinux.org/packages/ratatui-snake): `paru -S ratatui-snake`

## How to run locally

```bash

cargo run

```

## Structure

The project is divided in 3 main modules:

- `game`: Contains the game logic
- `main`: Contains the TUI rendering logic and the main loop
- `collision_detection`: is an external lib that contains the collision detection logic

## Contributing

Feel free to open an issue or a PR if you want to contribute to this project.
Any help is strongly appreciated.