Skip to content

v2.9.0 - Textual TUI Interface

Latest

Choose a tag to compare

@chelslava chelslava released this 30 Mar 15:44
· 5 commits to master since this release

What's New

🖥️ Textual TUI Interface

  • Modern terminal UI with Textual framework
  • Interactive menus with button navigation
  • Real-time game rendering in terminal
  • Live statistics panel

Running TUI

# Launch TUI interface
snaketui

# Or via Python
python -m pyaisnake.tui

TUI Features

Feature Description
Main Menu Interactive button navigation
Game Screen Real-time snake rendering
Stats Panel Score, length, time, efficiency
Controls Arrow keys or WASD
Pause/Resume P or Space
Restart R key

Screens

Main Menu:

  • ▶ Play - Start new game
  • 🤖 AI Mode - Watch AI play
  • 🎮 Multiplayer - Local 2-player
  • 🎯 Levels - Play built-in levels
  • 🏆 Achievements - View progress
  • ❌ Quit - Exit application

Game Screen:

Controls

Key Action
↑↓←→ / WASD Move snake
P / Space Pause/Resume
R Restart game
Q / Esc Back/Quit
Ctrl+Q Force quit

Dependencies

  • textual>=0.47.0 - Terminal UI framework

Full Changelog

  • Add Textual TUI application
  • Main menu with navigation buttons
  • Game screen with live rendering
  • Stats and controls widgets
  • Add snaketui entry point
  • Bump version to 2.9.0