Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Chess2 – Play live online chess against a friend, or a chess engine (chess2.vercel.app)
4 points by jrudesill on March 2, 2023 | hide | past | favorite | 11 comments



It allowed me to take a bishop with a pinned pawn, putting my king in check by its queen. Not sure if that’s a chess2 thing or a bug


I am currently in the market for dev roles! I am completely self taught and this is a project that shows off what I am capable of. Its the first version so there will be issues here and there.


Feels as if you are using stockfish for openings. Might be an idea to randomise a bit otherwise it becomes predictable. But it is really a great piece of work.


Thanks a lot. Stockfish is used for openings and playing in general. I guess in the future it would be a good idea to give change the engine parameters slightly for each game. It is very configurable. Glad you enjoyed it


Yes, but I was trying to say that maybe stockfish is not the ideal solution for openings. Book openings are widely available and are more about strategy than looking for an immediate win.


This is so cool dude!


Thanks John!


Very cool! What’d you use for the engine?


The engine is a WASM implementation of the stockfish 11 engine. https://github.com/nmrugg/stockfish.js


Ah gotcha very cool! Incredible it can run in the browser


Yes web workers are cool. Sadly its only single threaded. If I'm not mistaken the newer version of the engine can run multithreaded but only on super modern browsers. This slightly older version ensures more compatibility




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: