♟️ Chess FEN Viewer

📐 工作原理与说明
FEN 棋盘段按 / 分 8 行;数字表示连续空方格数;大写字母为白方棋子、小写为黑方;后接行棋方(w/b)、王车易位权、过路兵目标格三个字段

Paste a FEN string and the position is parsed and drawn in the browser — side to move, castling rights, en passant target and move counters included.

输入 FEN 字符串查看棋盘

📚 深度解析:国际象棋 FEN 查看器

💡 常见使用场景

  • 棋谱阅读:粘贴 FEN 串,前端渲染初始局面,快速看懂局势。
  • 对局复盘:把对局中的 FEN 逐个载入,逐步回看。
  • 局面分享:生成/复制 FEN 发给棋友,无需截图即可还原棋盘。
方法(FEN 结构)
FEN 共 6 段:①棋子局面(从 a8 到 h1,数字表连续空格)②轮走方(w/b)③王车易位权(KQkq)④吃过路兵目标格(或 -)⑤半步计时 ⑥回合号。工具解析后渲染棋盘。
算例(演示)
初始局面 FEN:`rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1` → 渲染为开局、白方先走、双方均可易位、无吃过路兵;若末尾易位段为 `-` 表示该方已失易位权,如 `w - - 0 1` 表示白不可易位。

❓ 常见问题(FAQ)

FEN 六段各是什么?
局面 / 轮走方 / 易位权 / 吃过路兵格 / 半步计时(50 回合规则)/ 回合号,缺段会解析失败。
吃过路兵怎么看?
第 4 段显示可吃过路兵的目标格(如 e3),为 - 表示当前无该权利。

Formula & Standard References

Item Formula / Note Source / Standard
FEN structure six fields cover placement, side, castling, en passant and counters FEN specification
Piece letters uppercase is white and letters run king, queen, rook, bishop, knight, pawn FEN specification
Legality notation does not enforce rules such as a king left in check FIDE Laws of Chess
⚠️ 使用说明与注意事项