3 ms·
Show HN: Chess2 – Play live online chess against a friend, or a chess engine
- jrudesill 4y agoI 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.
- 8ballmike 4y agoIt 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
- markthethomas 4y agoVery cool! What’d you use for the engine?
- jrudesill 4y agoThe engine is a WASM implementation of the stockfish 11 engine. https://github.com/nmrugg/stockfish.js https://github.com/nmrugg/stockfish.js
- markthethomas 4y agoAh gotcha very cool! Incredible it can run in the browser
- jrudesill 4y agoYes 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
- johnlocke8 4y agoThis is so cool dude!
- jrudesill 4y agoThanks John!
- beardyw 4y agoFeels 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.
- jrudesill 4y agoThanks 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
- beardyw 4y agoYes, 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.