TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Visualize move, protection and threat status in chess

47 pointsby _ologyover 9 years ago

5 comments

marcusbrownover 9 years ago
Cool!<p>I&#x27;ve been thinking to make the exact same thing in Javascript using Chess.js and Chessboard.js<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jhlywa&#x2F;chess.js&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jhlywa&#x2F;chess.js&#x2F;blob&#x2F;master&#x2F;README.md</a> <a href="http:&#x2F;&#x2F;chessboardjs.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;chessboardjs.com&#x2F;</a><p>I got a half-working version and will opensource the code once it&#x27;s ready.<p>I think it could be a nice tool to help people starting with the game, but also as an analysis tool for more advanced players.<p>[Edit] I just uploaded what I did so far on a server, just in case you want to take a look<p><a href="http:&#x2F;&#x2F;www.hotpixel.mx&#x2F;chess&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;www.hotpixel.mx&#x2F;chess&#x2F;index.html</a><p>my idea is to use little icons (now really terrible looking) with numbers and playing with opacity to give an idea of the strength for each square of the board. I still have some problems in some cases displaying incorrect numbers, but I hope to fix that as soon as I have some spare time :)
评论 #10170263 未加载
fjarlqover 9 years ago
Cool, good idea!<p>I have a couple bits of cosmetic feedback for you:<p>I would like the chess pieces to appear much larger within each of their squares, ala <a href="http:&#x2F;&#x2F;www.365chess.com&#x2F;opening.php" rel="nofollow">http:&#x2F;&#x2F;www.365chess.com&#x2F;opening.php</a><p>Also, the green border around protected cells is difficult for me to discern. (Might be due to my colorblindness.)
评论 #10171298 未加载
评论 #10171968 未加载
评论 #10171299 未加载
blevinsteinover 9 years ago
This is neat!<p>I was working on something similar recently: <a href="https:&#x2F;&#x2F;github.com&#x2F;blevinstein&#x2F;chess_assistant&#x2F;blob&#x2F;master&#x2F;screenshot-2015-02-04.png" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;blevinstein&#x2F;chess_assistant&#x2F;blob&#x2F;master&#x2F;s...</a><p>I had been thinking about ways to analyze the graph of &quot;threats&quot;, so I focused on which pieces were threatening which. I wanted to eventually extend this to also include which pieces were threatening which squares, but never got that far.
MrQuincleover 9 years ago
Would be nice if there was also an &quot;advanced&quot; mode. Only highlight pieces that have less defenders than attackers. And highlight pins.<p>And I assume even more advanced modes highlight perhaps central squares that might be obtained and which open lines. See <a href="https:&#x2F;&#x2F;en.m.wikibooks.org&#x2F;wiki&#x2F;Chess_Strategy&#x2F;Open_lines" rel="nofollow">https:&#x2F;&#x2F;en.m.wikibooks.org&#x2F;wiki&#x2F;Chess_Strategy&#x2F;Open_lines</a> for a nice example.
评论 #10177501 未加载
hemapaniover 9 years ago
Very cool idea? Do you have a demo or write up about how it works? also would like to know how one can use it.
评论 #10171278 未加载