Skip to content

SSam0419/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mastermind (TUI)

A super simple Mastermind terminal game written in Go, built with Bubble Tea + Lipgloss.

Run

go run .

How to play

  • Guess the 4-digit code.
  • After each guess you’ll get feedback:
    • Correct position: right digit in the right slot
    • Wrong position: right digit in the wrong slot

Controls

  • Move cursor: ←/→ or h/l
  • Quit: q, esc, or ctrl+c
  • Reset: r
  • Confirm / submit: enter or space

Project layout

  • main.go: program entrypoint
  • internal/game/mastermind: core game logic
  • internal/ui/tui/mastermindtui: Bubble Tea model + view/update
  • internal/ui/styles: Lipgloss styles

About

a simple TUI game using Go Lang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages