ianfab / fairyground

playground for Fairy-Stockfish in the browser
https://fairyground.vercel.app/
GNU General Public License v3.0
20 stars 5 forks source link

Themes & Timer function improvement #63

Closed yjf2002ghty closed 3 months ago

yjf2002ghty commented 3 months ago

After this change:

  1. Now loaded themes for each variant will be shown in a dropdown, making it easier to choose.
  2. Adds Byo-yomi timer type. Meanwhile unused option input box will be hidden now.
  3. Adds icons for some buttons.

There are some characteristics to be aware of:

  1. The theme selection dropdown will only contain default themes ("default" and "defaultboard") which are used for fallback purposes(e.g. The themes.txt is empty or does not exist). When you open the page, the variant is selected to "(default)" and the dropdown will not load the themes. After you select another variant, The themes will get loaded into the dropdown for choice. Note that although the prototype of (default) variant is chess, the position variant system and the themes system will not consider it as chess.
  2. The icons are emojis which can have different displays on different browsers and platforms. On Blink based browsers they look what they are supposed to. On other browsers like Gecko based or Webkit based browsers some of the emojis are displayed differently.
vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairyground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2024 9:56am
ianfab commented 3 months ago

Looks good, thanks