1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-02-15 13:33:03 +02:00

pieces package

This commit is contained in:
Maas Lalani 2021-12-24 15:58:59 -05:00
parent f67cc857ee
commit 8abe072d85
No known key found for this signature in database
GPG Key ID: 5A6ED5CBF1A0A000
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/charmbracelet/lipgloss"
dt "github.com/dylhunn/dragontoothmg"
"github.com/maaslalani/gambit/board"
"github.com/maaslalani/gambit/pieces"
"github.com/maaslalani/gambit/position"
)
@ -74,7 +75,7 @@ func (m model) View() string {
}
}
}
s.WriteString(" " + style.Render(Display[string(cell)]) + " " + vertical)
s.WriteString(" " + style.Render(pieces.Display[string(cell)]) + " " + vertical)
count += 1
}
}

View File

@ -1,4 +1,4 @@
package main
package pieces
var Display = map[string]string{
"": " ",