Skip to content

ApisMellow/card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Card Game

A simple terminal-based card game built with Go and bubbletea. Practice tracking probabilities as you draw cards from a standard 52-card deck.

Features

  • ASCII art card visualization
  • Three-pile display: Deck, Hand, Discard
  • Real-time probability tracking by rank
  • Shuffle to reset the deck

Installation

go build
./card-game

Controls

  • d - Draw a card (moves current hand to discard, draws new card)
  • s - Shuffle deck (returns all cards to deck and randomizes)
  • q - Quit

Architecture

  • deck/ - Pure game logic for card management
  • ui/ - Bubbletea TUI implementation
  • render/ - ASCII art rendering functions

Testing

go test ./...

About

Terminal-based card game with ASCII art and probability tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages