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.

Spawkfish: Neural network chess

45 pointsby willlllabout 9 years ago

14 comments

agardenabout 9 years ago
In my game[0] it played well until it hit a position where it seemed to run out of ideas. At that point, it let me take its queen for a rook. The strange thing was that it felt like playing my five year old, who also plays well until he runs out of ideas and then just sacrifices a piece.<p>It also missed the kind of tactics that my kid misses and played surprisingly human like mistakes. Note move 35... Rxf2, as if it forgot about the bishop because it had moved to the other end of the board. That&#x27;s the kind of mistake a human player might make and computers never do.<p>It strikes me that this would be a great engine for my five year old to practice against. I&#x27;d love to see it added to lichess or put into a phone app for that purpose.<p>0. <a href="http:&#x2F;&#x2F;en.lichess.org&#x2F;beOA0Q2T#68" rel="nofollow">http:&#x2F;&#x2F;en.lichess.org&#x2F;beOA0Q2T#68</a>
spawkfishabout 9 years ago
Hello, I&#x27;m the creator of spawkfish :)<p>The project is still in pretty early stages, so don&#x27;t expect it won&#x27;t take down any strong chess players yet, but I&#x27;m hoping that with a bit of effort it will be possible for neural networks to do for chess what they have recently done for Go.
评论 #11216736 未加载
评论 #11216643 未加载
评论 #11217844 未加载
sabujpabout 9 years ago
It&#x27;s pretty weak right now (I&#x27;m white) defeated it in less than 30 seconds :<p><pre><code> [Event &quot;Spawkfish game&quot;] [Date &quot;2016.03.03&quot;] [White &quot;YOU!&quot;] [Black &quot;Spawkfish&quot;] [Result &quot;1-0&quot;] 1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4 5. Bxf7+ Kxf7 6. Nxe4 d5 7. Neg5+ Kg8 8. d4 exd4 9. Nxd4 Nxd4 10. Qxd4 Qe7+ 11. Be3 h6 12. Qxd5+ Qf7 13. Qxf7# 1-0 </code></pre> My 1 min rating on licchess is ~1550 &lt;-&gt; 1700, but I can sometimes defeat any players rated 1.8k - 2k at 1 min blitz.
adamtabout 9 years ago
That was really impressive. Other than playing very accurately, I felt it played far more human-like than most computer chess engines.<p>I&#x27;ve written several chess engines, and have often wondered for some time whether or not there was a chance for a more AI&#x2F;pattern-driven approach.<p>Are you using your AI just for evaluation? E.g. do you have a traditional PVS&#x2F;negascout (or similar) search? Presumably an &#x27;extreme Type C&#x27; (no search) would fail to recognise various draws (50 move&#x2F;repetition)?<p>Good work :-)
评论 #11216993 未加载
binarymaxabout 9 years ago
I won :)<p>4R2k&#x2F;p5p1&#x2F;7p&#x2F;n4Q2&#x2F;7q&#x2F;2PP1P2&#x2F;Pr3P1P&#x2F;5RK1 b - - 6 27<p>EDIT - for context, I was about 1900 USCF in my prime 20 years ago - still do puzzles daily.<p>In any case, I think this is cool. I was also surprised it managed to play efficiently given the load you must be feeling from HN. Thanks for making this and showing it!
bainsfatherabout 9 years ago
Normally against a chess computer, you try to play positionally and avoid tactical situations - i.e. you avoid its strengths and target its (relative) weakness.<p>It is nice (and also rather uncanny) to be in the opposite situation here. Positionally it looks good, tactically, not so good.<p>A great project!
jhartmannabout 9 years ago
Seems very interesting, I really think these approaches will work rather well on a variety of games. Very exciting times. Btw, there is another already Open Source Neural Network Chess engine that might be worth exploring for similar ideas. That codebase already has a minmax search based on the network evaluation. Paper is at: <a href="http:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1509.01549" rel="nofollow">http:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1509.01549</a> Code is at: <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;waterreaction&#x2F;giraffe" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;waterreaction&#x2F;giraffe</a>
评论 #11218328 未加载
willlllabout 9 years ago
You can play against the bot online at <a href="http:&#x2F;&#x2F;spawk.fish&#x2F;play&#x2F;" rel="nofollow">http:&#x2F;&#x2F;spawk.fish&#x2F;play&#x2F;</a><p>I lost, but I&#x27;m bad at chess.
mathattackabout 9 years ago
Very nice! The only thing missing is a Back button to allow me to back out of mistakes. :-)<p>I believe that chess follows the state of the art in AI. The first wave of success was based on brute force of computing better than people. Now it&#x27;s harnessing insight. Keep up the interesting work!
dfanabout 9 years ago
Very nice! It may be annoying, but I think at some point you really will need to keep track of castling rights and en-passant (position repetition is much harder but I don&#x27;t think it is so necessary). Some evaluations depend very heavily on them.
评论 #11217907 未加载
anaolykarpovabout 9 years ago
I won (hardly, after I had 3 pawns against a knight during mid game) and I don&#x27;t think I&#x27;d reach 1600 elo if I were to play in tournaments. My elo is about 1620 on chesstempo, where I solve tactics quite often (daily, during the last 8 weeks or so)
tvelichkovabout 9 years ago
For a first time I&#x27;m actually having fun playing against a computer :D.
mkohlmyrabout 9 years ago
Definitely wasn&#x27;t pretty. 1k2Q3&#x2F;5Q2&#x2F;8&#x2F;2p5&#x2F;3p4&#x2F;1B1P2p1&#x2F;2K5&#x2F;8 b - - 5 56
torthrwabout 9 years ago
4RR2&#x2F;1p4p1&#x2F;p1p5&#x2F;2p3p1&#x2F;2P2kP1&#x2F;7P&#x2F;PP1r1P1K&#x2F;8 b - - 2 31<p>Cool project but not hard to beat.