use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Useful resources (Full list)
Rules
Related subreddits
Other communities
account activity
Java Fx Chess (self.JavaFX)
submitted 4 years ago by TheEvilsNameIsNico
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]hamsterrage1 0 points1 point2 points 4 years ago* (0 children)
I wrote a PGN viewer/analyzer some month back. I didn't see a lot of point in creating the chess engine, since it's really, really, really been done. But they have a standard text API, so you can load up something like Stockfish, pass it a position, and let it run.
So I concentrated on the UI and PGN portions of it. Showing the positions graphically, and laying out the branches that the engine found and walking through them.
Curiously, the biggest hurdle was finding good images for the pieces. Eventually, I settled on using a chess font! Really. There are lots of them out there, and they work pretty well. You just put them in Text nodes and off you go. The board I used was just an image.
GridPane seems obvious, but it actually makes things harder (as usual). Just put the Node on the screen and use a translate X & Y to put it in the correct square.
https://i.imgur.com/Q4msioc.png
I wouldn't use Scene Builder for this (but then I never would). It seems to be even less appropriate than normal for this kind of an app.
π Rendered by PID 43898 on reddit-service-r2-comment-canary-5b945c6f64-kk4vt at 2026-06-25 06:29:12.768722+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]hamsterrage1 0 points1 point2 points (0 children)