July 2, 2021
Chess Clock – Playing With Timers – Part 1
Comments
(1)
July 2, 2021
Chess Clock – Playing With Timers – Part 1
I am currently a provider of technical training and support in the electronic manufacturing industry. My prior training and work experience as a teacher, network administrator, web design, and instructional design make me well prepared to design it, develop it, and deliver it. I am a father of five, a US Army veteran, and I enjoy playing the guitar as well as performing in local community theater. 
Legend 99 posts
Followers: 156 people
(1)

This project was inspired by another posting about a chess game. You can see that here.

https://elearning.adobe.com/2021/07/play-chess-with-captivate/

This chess clock expands on the setTimeout capabilities by adding in use of the clearTimeout command.

This allows us to properly stop the clock and restart it without firing multiple instances of the clock on top of itself.

— Tap the top buttons to change the active player clock. If the button is up – that side should be going and the other stopped.
— Both clocks are stopped when both buttons are at the mid point. Use the  S  button to stop both clocks.
— Use the  R  button to fully reset the clock back to 0 for both players.
— Use the up and down arrows on the left side of the clock to adjust the play time  up to a maximum of 60 minutes per player
— Chess Clock has both digital and analog displays.

I will do a full write up on the code for this one in another post. In the meantime – have fun playing with this project and feel free to ask any questions you may have.
Also feel free to share any ideas for improving this clock.

Preview Project
View Code

1 Comment
Jul 7, 2021
Jul 7, 2021

Perfect !… Check Mate !…

But I just had a glance at the coding part… Ou la la !… I don’t have the time to experiment it now… And the use of the GSAP isn’t the big point… It should be nice that the next waited version of Captivate will offer us an easy way to use Javascript in all his power !…

Great Job Greg !

Happy Captivating !…

😉

Like
(1)
Add Comment