Skip to content

Commit

Permalink
feat: streaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 19, 2025
1 parent 291dd67 commit af9e4b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ func StreakSymbols(arr []int, length int, minimum int) string {
var symbols []string
for _, v := range arr {
if v >= minimum {
symbols = append(symbols, "❌️")
symbols = append(symbols, "")
} else {
symbols = append(symbols, "✅️")
symbols = append(symbols, "")
}
}
// Fill the rest with grey symbols based on streak length
for i := len(symbols); i < length*StreakMultiplier; i++ {
symbols = append([]string{"🔲"}, symbols...)
symbols = append([]string{""}, symbols...)
}

return strings.Join(symbols, " ")
Expand Down

0 comments on commit af9e4b0

Please sign in to comment.