Created
May 9, 2012 08:51
-
-
Save edgarmueller/2643105 to your computer and use it in GitHub Desktop.
Pokertimezilla in ZSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
emulate -L zsh | |
b=(1 2 2 4 5 10 10 20 25 50 50 100 100 200 200 400 400 800 800 1600 1600 3200 3200 6400 6400 12800) | |
c=1 | |
rt=5 | |
while [ "$c" -le "${#b}" ]; do | |
for i in {$rt..0}; do | |
sleep 1 | |
print -n "Time: ${(l:2::0:)$((i/60))}:${(l:2::0:)$((i%60))} Blinds: $b[$c], $b[$c+1]\r" | |
done | |
((c+=2)) | |
print "\r\nNext round!\r\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment