lichess.org
Donate

Guidence needed - customization to change piece colors along the game. How can I experiment that?

@Avinash_Jeevanram said in #11:
> That looks great! Can you share the final code @EvilChess ?

Thanks for your interest. Sent you via chat. A good way of testing is to enter the "Current Games" page and pick one where one of the players is getting short on time. You'll have to activate the feature after the game begins, because it is lost in each page navigation or reload.

I also added the "KeepCool" feature. When your opponent has the red shadow and you are not on time constraint, their red color may make you feel pressured too. But you may have enough time on our clock. In such case, a blue shadow is added in your pieces to indicate that you can keep cool. Your blue shadow decreases as you approach the block time when your pieces will become reddish.

https://i.imgur.com/TfO6bKL.png

I'm also thinking about the "Take your time" feature. It would make your pieces greenish if you have lots of clock time and your opponent has less than half of your clock time. Green is the color of abundance. I'm not sure about this one though.

The goal is to make us FEEL the clock times, instead of measuring them, and apply that feeling into our move timing and way of playing.

This topic has been archived and can no longer be replied to.