Talk:3045: AlphaMove
Ask Tom Murphy VII to get on this 141.101.99.103 22:50, 31 January 2025 (UTC)
I have attempted to run the proposed bot against itself — if I haven't made any errors, here are the resulting games:
Rounding down:
1. e4 e6 2. f3 f5 3. e5 g5 4. d4 d5 5. exd6 g4 6. d7+ Kf7 7. dxc8=N Ke8 8. fxg4 h6 9. gxf5 Kd7 10. g4 h5 11. fxe6+ Ke8 12. g5 Na6 13. h3 Nc5 14. h4 Ne7 15. Kd2 Ne4+ 16. Ke1 Nf5 17. g6 Nf6 18. g7 Ng3 19. gxf8=N Nge4 20. Ke2 Ng4 21. Kf3 Ngf2 22. Ke2 Nh3 23. Ke3 Nhf2 24. Nb6 Nh3 25. Na4 Nhf2 26. Nac3 Nxc3 27. Kxf2 Nxd1+ 28. Kf3 Qc8 29. c4 Ne3 30. Ke4 Nf5 31. Kd3 Ng3 32. e7 Nxh1 33. Kc2 Qb8 34. d5 Kxe7 35. d6+ Kf6 36. dxc7 Nf2 37. c8=R Ng4 38. Kd2 Nh2 39. Ke3 Ng4+ 40. Kd4 Nh2 41. Kd5 Nxf1 42. Nc3 Nh2 43. Nce2 Ng4 44. Nd4 Nh6 45. Nd7+ Kf7 46. Ndf3 Qd6+ 47. Ke4 Qd2 48. Nf8 Qd5+ 49. Ke3 Qd2+ 50. Ke4 Qd5+ 51. Ke3 Qd2+ 52. Ke4
Rounding up:
1. f3 f5 2. e4 f4 3. d4 e6 4. e5 g6 5. g3 fxg3 6. c3 g2 7. d5 gxf1=Q+ 8. Kxf1 exd5 9. Ke2 d6 10. Kd3 g5 11. Kd2 dxe5 12. Ke2 d4 13. Kd3 dxc3+ 14. Ke3 e4 15. Ne2 exf3 16. Ng1 f2 17. Nxc3 fxg1=N 18. Qc2 Kd7 19. Ne2 h6 20. Qa4+ Ke6 21. Qb3+ Ke7 22. Qb4+ Ke8 23. Qb5+ Kf7 24. Qa6 Kg7 25. Qa4 Kg6 26. Qb3 Kg7 27. Qb4 Kh7 28. Qb5 Kg7 29. Qa6 Nc6 30. Nxg1 Na5 31. Qb6 Kh7 32. Qb3 Kg6 33. Qb4 Kg7 34. Qb6 Kh7 35. Qb3 Kg6 36. Qb4 Kg7 37. Qb6
Rounding down code:
const { Chess } = require("chess.js");
const chess = new Chess();
while (!chess.isGameOver()) {
const moves = chess.moves();
moves.sort((a, b) => b.localeCompare(a));
const move = moves[Math.floor(moves.length / 2)];
chess.move(move);
}
console.log(chess.pgn());
To round up, swap the a and b in the sort function.
Both games end in a threefold repetition draw. The game with rounding down does, in fact, have 6 knights in it, so I believe he did code this to see what would happen.
Ohpointfive (talk) 22:52, 31 January 2025 (UTC)
To elaborate on the Tom VII point - this is the YouTube video that possibly inspired the comic: https://www.youtube.com/watch?v=DpXy041BIlA
141.101.98.179 22:55, 31 January 2025 (UTC)
- Specifically, it's the Arithmetic Player at 24:43 set to ½. ChaoticNeutralCzech (talk) 17:52, 1 February 2025 (UTC)
Unfortunately for white, it's mate in 1 with Bb4# 162.158.90.124 23:25, 31 January 2025 (UTC)
Even if white makes a different move, its still forced mate in one. RIP XKCD Bot. Redacted II (talk) 00:53, 1 February 2025 (UTC)
- Well, for most options. Queen to a4 puts Black in check, forestalling an immediate move to mate White; capturing the knight de-threatens enough squares around the king that Black can't check next turn without leaving an escape route. 172.70.176.28 17:45, 1 February 2025 (UTC)
Although it wouldn't change the outcome much (either by changing black's move or white's general options), I'm currently not understanding why Kd4 isn't on the list of options at this point in time. So long since I played serious(ish) chess, and the only reason I could think of is that it's probibited by some strict ortbodox game rule recognising the potential moving of the knight out of the way (in the next white move-cycle). But I'd have treated that later option as forbidden, as a revealing-mate. But, as I said, it's been a while, so maybe I'm just blind to something like a sweeping bishop-range that disbars this (much as the near knight, bishop and pawn disbars four out of the five moves). ...darn, it's just clicked. That's the AlphaMoved white-knight's destination (before that, the black queen was entirely covering that square, and double-teaming one of the adjacent black-knight covered squares), I'd been thinking that was the piece's origin (with the empty highlighted square as its destination) until I'd finally read the highlighted movelist item properly and deciphered it as Knight To King Two (done), not the (intention of) Knight To King's Bishop One. So ignore the above. Although, just to note, for the Black Queen to have even achieved that position would probably have required at least one normally-sacrificial exposure to the deadly white Q/B/R pieces guarding the obvious entry, give or take the algorithmic development of their (and the "gateway pawns"') current positions. 141.101.99.104 02:00, 1 February 2025 (UTC)
- Follow-up... As far as the black queen is concerned, I suppose she could have done d6, (x?)g3 then f2, in-between the other black and white moves made, largely safe from the white 'defence'. Or to d4 then f2, if white Queen's Pawn was shielding still. (Appears to have been taken, but it would have been bold to have done that with the queen, for a normally immediate pawn-queen exhange!) A bolder/more opportunistic set of moves than I would have tried, either. Even (unknowingly) against AlphaMove, I'd have been wary of the unconventionally developing white disposition actually being an idiot-trap (and I'm really not that far off being an idiot, insofar as chess). 172.70.162.162 02:17, 1 February 2025 (UTC)
The explanation gives both O-O and 0-0 as notations for castling and then explains why 0-0 can never occur, even though O-O can be sorted pretty centrally. So, which is the correct notation? 172.71.250.91 09:14, 1 February 2025 (UTC)
- According to the pgn spec, section 8.2.3.3: they are capital Os and not zeros 172.68.3.96 15:10, 1 February 2025 (UTC)
I'm pretty sure we're looking at a retrograde puzzle. Ohpointfive is onto something here, with the six knights on the board a strong indicator. The question is, of course, where is the joke? White plays Alphamove all along and must have started with e4 (rounding down) or f3 (rounding up). Both are consistent with the end position. So from my point of view, the joke is
- either that the "stronger engine" is not a strong engine at all but maybe the same algorithm, rounding up instead of down
- or that black doesn't win this position (in real chess, White is of course toast) because its algorithm is even worse
@Ohpointfive, could you run the two versions against each other? --Pganon (talk) 15:55, 1 February 2025 (UTC)
I created a playable version of this game in like 10 minutes using ChatGPT ;)
https://enn-nafnlaus.github.io/AlphaMove/alphamove.html
Git page here:
https://github.com/enn-nafnlaus/AlphaMove
-- 172.69.144.163 17:52, 1 February 2025 (UTC)
I checked, castling and en passant both work. 172.68.245.25 19:26, 1 February 2025 (UTC)
@Pganon certainly:
White rounding down vs. black rounding up:
1. e4 f5 2. f3 f4 3. d4 e6 4. e5 g6 5. d5 exd5 6. g3 fxg3 7. c4 g2 8. h3 gxf1=Q+ 9. Kd2 Kf7 10. Kc3 Ke8 11. Kc2 Kf7 12. Kb3 Ke8 13. Kc2 Kf7 14. Kb3 Ke8 15. Kc2
White rounding up vs. black rounding down:
1. f3 e6 2. e4 f5 3. e5 g5 4. d4 d5 5. f4 gxf4 6. h3 h5 7. h4 Kd7 8. Kd2 Kc6 9. Kd3 Kb6 10. Ke2 Kb5 11. Ke1+ Kb4 12. Ke2 Kb5 13. Ke1+ Kb4 14. Ke2 Kb5
The first game is quite exciting, with black at one point having a chance at checkmate in one, but alas too many available pawn moves drives the winning move Qxc4# far past the center of the list. The second game is much less exciting.
Ohpointfive (talk) 21:30, 1 February 2025 (UTC)
Here's a question: What is the quickest way to checkmate AlphaMove? Here's the quickest that I have found so far:
- f3 d5
- e4 d5xe4
- f4 e5
- g3 Bg4
- d4 Qxd4
- f5 e3
- f6 Qxd1#
Thus, we have mate in seven. This might be good to mention outside the comments section as a demonstration tha AlphaGo is not very good (not to mention failing to capture black's undefended queen), but a quicker checkmate might be possible, in which case we should mention that instead.172.70.207.159 11:08, 2 February 2025 (UTC)
