A snake game written in rust using ratatui library.
In this mode the player controls the snake and can move it in any direction.
In this mode one of the LL Models takes control over the snake.
Llama3 70b model
Llama3 8b model
-
arrow keys - change the direction of the snake
-
q - quit from the game.
-
m key - select game mode and provider.
In order to use LLM control mode config.yaml file needs to be placed in the root folder. The following is an example config.yaml file:
groq_client:
url: https://api.groq.com/openai/v1/chat/completions
token: your-api-key-here
ollama_client:
url: http://localhost:11434/api/chat
model: llama3Groq api key can be found here
# run the game
cargo run
# or build a binary and execute it
cargo build --release
./target/release/snake