Skip to content

splinesreticulating/letter-invaders-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Letter Invaders (Go)

A modern Go implementation of the classic typing game Letter Invaders.

About

This is a rewrite of the classic C version using Go and the Bubble Tea TUI framework. The original game had ~2000+ lines of C code with manual terminal handling - this version is ~300 lines of clean, modern Go.

Features

  • Type falling words before they reach the bottom
  • Progressive difficulty with level increases
  • Score tracking and WPM calculation
  • Clean terminal UI with highlighted words
  • Pause/resume functionality
  • ASCII explosion effect when words are completed
  • Configurable speed control for younger players (-speed)

Installation

go build

Usage

# Run with default dictionary (uses /usr/share/dict/words)
./letter-invaders-go

# Use the short words dictionary (great for kids!)
./letter-invaders-go -d short_words.txt

# Use a custom dictionary
./letter-invaders-go -d /path/to/dictionary.txt

# Slow the game down (milliseconds per tick; higher = slower)
./letter-invaders-go -speed 2000

Controls

  • Type letters - Match and destroy falling words
  • Backspace - Clear current input
  • SPACE - Pause/resume game
  • Ctrl+L - Redraw screen
  • Ctrl+C - Quit (use q on the Game Over screen)

Dictionary Format

The dictionary file should contain one word per line. The included short_words.txt contains 1-3 letter words, perfect for beginners and young children.

Credits

Based on the original Letter Invaders by Larry Moss (1991)

About

Letter Invaders typing game rewritten in Go using Bubble Tea - modern, concise implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages