Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Question

Question Unprotected by emanresu A
Question Protected by Community Bot
Notice removed Reward existing answer by Adám
Bounty Ended with dim's answer chosen by Adám
Question Unprotected by Ørjan Johansen
Notice added Reward existing answer by Adám
Bounty Started worth 500 reputation by Adám
Notice removed Reward existing answer by AdmBorkBork
Bounty Ended with dim's answer chosen by AdmBorkBork
Notice added Reward existing answer by AdmBorkBork
Bounty Started worth 500 reputation by AdmBorkBork
not unanswered anymore
Source Link
MD XF
  • 14.2k
  • 5
  • 69
  • 107

Since my Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input.


Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Since my Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input.


Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Notice removed Reward existing answer by ghosts_in_the_code
Bounty Ended with dim's answer chosen by ghosts_in_the_code
Notice added Reward existing answer by ghosts_in_the_code
Bounty Started worth 500 reputation by ghosts_in_the_code
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Since my Tetris Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input.


Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Since my Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input.


Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Since my Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input.


Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties:

  1. 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.

  2. The pattern is periodic, and the state loops around without any outside interaction.

  3. The minutes update at regular intervals — from one change of minute to the next takes the same number of generations.

  4. 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.)

  • The digits appear next to each other, without an excessive amount of space between them.


Your program will be scored on the following things, in order (with lower criteria acting as tiebreakers for higher criteria):

  • Bounding box size — the rectangular box with the smallest area that completely contains the given solution wins.

  • Fastest execution — the fewest generations to advance one minute wins.

  • Initial live cell count — smaller count wins.

  • First to post — earlier post wins.

Notice removed Reward existing answer by user41805
Bounty Ended with dim's answer chosen by user41805
Notice added Reward existing answer by user41805
Bounty Started worth 500 reputation by user41805
Notice removed Reward existing answer by Kade
Bounty Ended with dim's answer chosen by Kade
Notice added Reward existing answer by Kade
1
2

AltStyle によって変換されたページ (->オリジナル) /