{"uid":"cap_kKCFaAG-ptitNVuJEfGdx","slug":"chess-eval-best-line-principal-variation-playthrough-804fe58e","name":"Chess Eval – Best Line (Principal Variation Playthrough)","description":"Evaluate a chess position with Stockfish: best move, centipawn/mate score, principal variation, and optional multipv. No mocks — a real single-threaded Stockfish 10 (asm.js) runs in-isolate per call.; Play out Stockfish&#39;s predicted principal variation as SAN moves with a per-ply eval, re-searching a","url":"https://chess-eval.x402supply.com/tools/best_line?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fen":{"type":"string"},"depth":{"type":"integer","maximum":18,"minimum":1},"maxPlies":{"type":"integer","maximum":40,"minimum":1}}},"responseSchema":{"type":"json","example":{"line":[{"ply":1,"san":"d5","move":"d7d5","evalCp":-29,"depthReached":10},{"ply":2,"san":"exd5","move":"e4d5","evalCp":100,"depthReached":10},{"ply":3,"san":"c6","move":"c7c6","evalCp":-52,"depthReached":10},{"ply":4,"san":"Nf3","move":"g1f3","evalCp":96,"depthReached":10}],"engine":"stockfish 10 asm.js","status":"ok","timedOut":false,"fenEchoed":"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1","perspective":"side-to-move","depthReached":10}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nrprDlLmtNi-_nRzkwi_q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Plays out Stockfish's predicted principal variation move-by-move, returning each ply as a SAN move with its per-ply centipawn evaluation and depth reached.","exampleAgentPrompt":"Analyze this chess position using Stockfish and play out the principal variation for up to 15 plies, showing the SAN move and centipawn eval at each step: FEN is rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1, search depth 12.","exampleUseCases":[{"title":"Post-game blunder walkthrough","prompt":"I just finished a game and want to understand what Stockfish would have played from the position after move 18. Here's the FEN: r1bq1rk1/pp2ppbp/2np1np1/8/3NP3/2N1BP2/PPPQ2PP/R3KB1R w KQ - 0 10 — play out the best line for 20 plies at depth 14 and show me the eval at each move."},{"title":"Opening preparation line check","prompt":"I'm studying the Caro-Kann and want to see Stockfish's full predicted continuation from this position for 15 plies at depth 12: rnbqkbnr/pp1ppppp/2p5/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2. Show me each move in SAN notation with its centipawn score."},{"title":"Endgame technique evaluation","prompt":"Can you run Stockfish on this king-and-pawn endgame FEN — 8/8/4k3/8/4K3/4P3/8/8 w - - 0 1 — and play out the principal variation for up to 30 plies at depth 16, so I can see the winning technique move by move with evals?"}],"resultDescription":"Returns an ordered array of plies, each containing the ply number, SAN move string, UCI move string, centipawn evaluation from the side-to-move perspective, and depth reached for that search. Also includes the engine identifier ('stockfish 10 asm.js'), a status field, a timedOut boolean, and the echoed FEN for verification.","failureModes":["Invalid FEN string causes rejection or undefined behavior","Depth above 18 or below 1 is rejected by schema validation","maxPlies above 40 is clamped or rejected","Very deep searches on complex positions may time out (timedOut: true in response)","Single-threaded asm.js engine is slower than native Stockfish — deep searches take longer","Network or payment (x402) failure before engine runs returns no result"],"whenToPreferThis":"Choose this endpoint when you need the full move-by-move principal variation with per-ply centipawn scores, not just the single best move. It is the right choice for game analysis walkthroughs, opening preparation, and endgame technique study where seeing the engine's predicted sequence matters. Prefer the sibling best-move endpoint if you only need the top move and overall position score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:33:47.849Z","isFirstParty":false,"canonicalSlug":"chess-eval-best-line-principal-variation-playthrough-804fe58e"}