solitaire-tui/main.go

20 lines
329 B
Go
Raw Permalink Normal View History

2023-01-03 06:24:59 +01:00
package main
import (
"log"
"math/rand"
"time"
"github.com/brianstrauch/solitaire-tui/internal/solitaire"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
rand.Seed(time.Now().UnixNano())
p := tea.NewProgram(solitaire.New(), tea.WithMouseCellMotion())
if _, err := p.Run(); err != nil {
log.Fatal(err)
}
}