PROGRAMMING CHALLENGE 02/23 - CLOCK WISE

PROGRAMMING CHALLENGE 02/23 - CLOCK WISE

john.uhden
Mentor Mentor
1,066 Views
22 Replies
Message 1 of 23

PROGRAMMING CHALLENGE 02/23 - CLOCK WISE

john.uhden
Mentor
Mentor

This challenge is to use AutoLisp only to create a list of strings representing the times (HH:MM:SS) when the hour hand, minute hand, and second hand of an analog clock are all pointing in the same direction (angle) in one (1) rotation of the hour hand (12 hours).
I imagine it will require a few simple but clever formulas, and may even a (while) loop to converge on the solutions.  I have done nothing as yet.
Yes, you may use a fuzz factor of 0.4 seconds or 2e-06 radians (if I converted that correctly).

Of course you should work on this only in your spare TIME.  🙂

John F. Uhden

0 Likes
1,067 Views
22 Replies
Replies (22)
Message 21 of 23

john.uhden
Mentor
Mentor

@Sea-Haven ,

I see the author's name, but I don't get what the image is supposed to identify.

Is that supposed to represent Oct. 22, 2023?

Oh yeah.  That's why the day of the week is Sunday.

Pretty cool!

So, I am wondering why he didn't respond to this challenge.  Maybe his clock is behind a few days.   (BTW, what happened to the emojis?)

John F. Uhden

0 Likes
Message 22 of 23

Sea-Haven
Mentor
Mentor

If you wiggle mouse as suggested the clock ticks. It starts at current time and day etc. I am pretty sure this is a newer version the old one did tick while you watched. 

0 Likes
Message 23 of 23

john.uhden
Mentor
Mentor

@Sea-Haven ,

Yes, the sticking annoys me.  He had added a (grread) which I don't think was necessary.

'Twould be really nifty if he were to add functions to change all of the hands and time based on moving (rotating) any of the hands (just like Darius Rucker in "Wagon Wheel)."  It could use a reactor instead of a (grread).

John F. Uhden

0 Likes