2
\$\begingroup\$

This question already has an answer here:

The challenge is make a digital clock that exhibits ascii numbers in a 24-hour format like:

 _   _     _   _ 
|_| |_| . |_| |_|
|_| |_| . |_| |_|

or

 _   _         _ 
 _|  _| . |_| |_ 
|_   _| .   |  _|

and updates the screen every 1 minute (or every 1 second, for praticity reasons). It must reset to 00:00 after 23:59.

\$\endgroup\$

marked as duplicate by Martin Ender, FryAmTheEggman, NinjaBearMonkey, Digital Trauma, squeamish ossifrage Dec 9 '14 at 20:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0
\$\begingroup\$

Python, 411 408 chars

import time,os
s=" ";p=".";a=s*3;b=" _ ";c="|_|";d="| |";e="|  ";f="  |";g="|_ ";h=" _|";P=[s,p,p]
z=[[b,d,c],[a,f,f],[b,h,g],[b,h,h],[a,c,f],[b,g,h],[b,g,c],[b,f,f],[b,c,c],[b,c,h]]
A=range(10);B=A[:6];C=A[:3]
while 1:
 for i in C:
  for j in A:
   if i==2&(j==4):break
   for k in B:
    for l in A:
     for m in C:
      print z[i][m]+s+z[j][m]+P[m]+z[k][m]+z[l][m]
     time.sleep(1);os.system('clear')

Not so pretty but working.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.