Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online co

Build a digital clock in Conway's Game of Life

submited by
Style Pass
2021-07-26 15:00:04

Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.

The clock displays the hours and minutes in decimal (e.g. 12:00, 3:59, 7:24) with a different state for each of the 1,440 minutes of the day — either the hours will go from 0 to 23 or from 1 to 12 with a PM indicator.

An anonymous bystander is able to tell at a glance that the display is supposed to be a digital clock. In particular, this entails:

The digits are visible and clearly distinguishable. You must be able to tell with certainty at a glance what time is being displayed.

The digits update in place. Each new number appears in the same place as the previous number, and there is little to no movement of the bounding boxes of the digits. (In particular, a digit does not contain 10 different digits in different places that get uncovered every time the digits change.)

Leave a Comment