1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-02-05 13:05:17 +02:00
This commit is contained in:
Maas Lalani 2021-12-24 15:49:48 -05:00
parent b36b8af032
commit 1c89a003dd
No known key found for this signature in database
GPG Key ID: 5A6ED5CBF1A0A000
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@ func (m model) View() string {
// Loop through all piece legal moves and see if this square matches any
for _, move := range m.legalPieceMoves {
if strings.HasSuffix(move.String(), PositionToSquare(lastRow-r, count)) {
display = Red.Render(" . ")
display = Cyan.Render(" . ")
break
}
}

View File

@ -7,7 +7,8 @@ import (
var (
Black = lg.NewStyle().Foreground(lg.Color("4"))
Faint = lg.NewStyle().Foreground(lg.Color("8"))
Cyan = lg.NewStyle().Foreground(lg.Color("5"))
Red = lg.NewStyle().Foreground(lg.Color("1"))
Selected = lg.NewStyle().Foreground(lg.Color("2"))
Selected = lg.NewStyle().Foreground(lg.Color("6"))
White = lg.NewStyle().Foreground(lg.Color("7"))
)