Calculating weekdays and dates with Go
Stage Fright
The preparations are complete, and your training program can begin! Advanced students are also welcome to extend the program by training for several changing years with different Doomsdays. If you want to simulate the time pressure that a magician experiences in front of an impatient audience, you can add a progress bar [3] to the game as an additional stress factor; this leaves the candidate only a short time to choose the day of the week. If the time expires, the score drops to zero points, which you could even accompany by a game show klaxon sound by playing an appropriate sound file. Enjoy!
Infos
- "Perl Script Reveals Math Trick" by Mike Schilli, Linux Magazine, issue 87, February 2008, p. 80
- Doomsday rule: https://en.wikipedia.org/wiki/Doomsday_rule
- "Develop a DIY Progress Bar" by Mike Schilli, Linux Magazine, issue 220, March 2019, pp. 46-49
- Listings for this article: ftp://ftp.linux-magazine.com/pub/listings/linux-magazine.com/227/
- Leap second: https://en.wikipedia.org/wiki/Leap_second
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)