mirror of
https://github.com/brianstrauch/solitaire-tui.git
synced 2024-11-16 07:47:52 +01:00
20 lines
329 B
Go
20 lines
329 B
Go
|
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)
|
||
|
}
|
||
|
}
|