divide instead to get number of day since epoch
Deploy game to server / deploy (push) Successful in 8s

This commit is contained in:
adam committed 2025-02-10 16:09:13 +00:00
1 parent 7c3b695737
commit 31a7332af1
1 file changed
+2 -2
+2 -2
View File
@@ -317,10 +317,10 @@ function reveal_row() {
}
function save_game() {
DAY=$(( $EPOCHSECONDS % 86400 ))
DAY=$(( $EPOCHSECONDS / 86400 ))
USER="${USER,,}"
render_board > "${USER}-${DAY}"
if [[ $win == 5 ]]; then
if [[ $win != 5 ]]; then
[[ "${BORDER}" == 1 ]] && echo -en "${CLEAR_DOWN}${INDENT}${INDENT}" >> "${USER}-${DAY}"
echo -en "${CLEAR_LINE}${BOLD}" >> "${USER}-${DAY}"
for (( i=0; i<WIDTH; i++ )); do