{{/* Shared layout pieces for all CowBull pages. Defines used across page templates must live here (page-local defines are not visible to other pages). */}} {{ define "head" }}
No games yet - be the first to play!
{{ else if eq $rounds 1 }}| Player | Guesses | Hints | Time | Score | ||||
|---|---|---|---|---|---|---|---|---|
| {{ if .IsLeader }} {{ template "icon_crown" "w-4 h-4 text-primary" }} {{ end }} {{ template "player_label" (dict "Row" . "ShowLoc" $showLoc) }} | {{ if $r }}{{ int $r.Guesses }} | {{ int $r.Hints }} | {{ $r.Time }} | {{ if eq $r.Status "COMPLETED" }} {{ $r.ScoreS }} {{ else if eq $r.Status "RESIGNED" }} {{ template "icon_flag" "w-4 h-4 opacity-60" }} {{ else }} {{ end }} | {{ else }}- | {{ end }}|||
| Player | {{ range $k := until $rounds }}R{{ add $k 1 }} | {{ end }}Total | |
|---|---|---|---|
|
{{ if .IsLeader }}
{{ template "icon_crown" "w-4 h-4 text-primary" }}
{{ end }}
{{ template "player_label" (dict "Row" . "ShowLoc" $showLoc) }}
{{ int .CurGuesses }} guesses
{{ int .CurHints }} hints
|
{{ range .Rounds }}
{{ if . }} {{ if eq .Status "COMPLETED" }} {{ .ScoreS }} {{ else if eq .Status "RESIGNED" }} {{ template "icon_flag" "w-4 h-4 opacity-60" }} {{ else }} {{ end }} {{ else }} · {{ end }} | {{ end }}{{ .TotalS }} | {{ if .Finished }} Finished {{ else if .DNF }} DNF {{ else }} Playing {{ end }} |
Running tally: every finished round adds to the total, even for players who stop early. Highest total wins.
{{ end }} {{ if $b.Events }}The word was {{ upper $g.Word }}
{{ end }}It was {{ upper $g.Word }}
{{ else }}The word stays hidden while others are still playing.
{{ end }}| Word | Bulls {{ template "icon_bull" "w-3.5 h-3.5" }} | Cows {{ template "icon_cow" "w-4 h-4" }} |
|---|---|---|
| {{ upper .Clue }} {{ if .Hint }} hint {{ end }} | {{ if eq (int .Bulls) 0 }} – {{ else }} {{ range until (int .Bulls) }} {{ template "icon_bull" "w-5 h-5 text-secondary" }} {{ end }} {{ end }} | {{ if eq (int .Cows) 0 }} – {{ else }} {{ range until (int .Cows) }} {{ template "icon_cow" "w-5 h-5 text-primary" }} {{ end }} {{ end }} |
| No guesses yet. Any valid 4-letter word gets you clues! | ||