Compare commits

..
Author SHA1 Message Date
adam 9bf92b856a Merge branch 'main' of gitea.adbraun.lol:adam/wordle
Deploy game to server / deploy (push) Successful in 7s
2025-08-28 10:00:19 +00:00
adam 75074d8e84 add stats url to online mode
Deploy game to server / deploy (push) Successful in 7s
2025-08-28 09:59:26 +00:00
adam 22b1c374f6 add reset before exit
Deploy game to server / deploy (push) Successful in 6s
2025-05-04 12:46:24 +01:00
adam 6848ac6575 Merge pull request 'resume on correct row after save during row reveal' (#10) from bugfix/issue-9 into main
Deploy game to server / deploy (push) Successful in 7s
Reviewed-on: #10
2025-05-04 11:36:06 +00:00
+3
View File
@@ -69,6 +69,7 @@ function main() {
echo -e "${CLEAR_DOWN}YOU WIN" echo -e "${CLEAR_DOWN}YOU WIN"
if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then
echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\"" echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
echo "Share/view your stats with -> curl \"${URL_BASE}/stats/${USER}\""
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}" while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
fi fi
echo "Guess - $(( ROW+1 ))/6" echo "Guess - $(( ROW+1 ))/6"
@@ -86,8 +87,10 @@ function main() {
save_result save_result
if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then
echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\"" echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
echo "Share/view your stats with -> curl \"${URL_BASE}/stats/${USER}\""
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}" while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
fi fi
echo -en "${RESET}"
exit 0 exit 0
} }