Closed afh closed 2 years ago
Friendly ping/nudge on this PR @conradludgate :)
I appreciate the effort, but I dislike the idea of timers in puzzle games
Thanks for taking a look at this, @conradludgate.
For me it's more about not wanting to spend too much time on puzzles than wanting to solve them in the shortest time possible.
I'll close this PR then and keep the PR branch in my fork around :)
I've used the zsh function below for quite a while to time my wordle games and thought the functionality of timing the game play might make for a nice addition to cl-wordle.
``` emulate -L zsh #-fman Play a game of wordle measuring the time it takes to finish local -r start=$(date +'%s') ~/.nix-profile/bin/wordle --hard $* local duration=$(( $(date +"(%s - $start) / 60") )) [[ $duration -eq 0 ]] && duration="<1" print "${duration} min" ```wordle.zsh
Add timer to game play and game share showing duration of current game. Can be toggled in tui using the '.' key.
TUI Example showing timer:
``` Wordle 0 1/6 (00:00:23) ABCDEFG HIJKLMN OPQRSTU VWXYZ > Press ESC to exit. Press ',' to shuffle the keyboard. Press '.' to toggle timer. ```Game share showing timer:
``` Wordle 0 4/6 (00:00:42) 🟩🟨🟨⬛⬛ 🟩🟨🟨⬛⬛ 🟩⬛🟨🟨🟩 🟩🟩🟩🟩🟩 ```As I take this also as a learning experience for Rust, happy to hear feedback of where the code can be improved.