package game import "github.com/gdamore/tcell/v3" // Directions for movement and actions const ( up = iota Left right down upleft upright downleft downright action ) // Styles holds the different styles for the game elements type Styles struct { Default tcell.Style ship tcell.Style hit tcell.Style miss tcell.Style sea tcell.Style } // Game holds the state of the game type Game struct { screen tcell.Screen style Styles keypresses chan int score int }