\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{texmate}
\author{Reza Abdollahzade}
\title{Chess Type}
\begin{document}
\begin{center}
تايپ جزوات شطرنجي در محيط لاتك
\end{center}

\begin{flushleft}
\whitename{Dubois}
\blackname{Steinitz}
\chessevent{London 1862}
\ECO{C50}
\chessopening{Giucco Pianissimo}
\makegametitle
|1 e4 e5 Nf3 Nc6 Bc4 Bc5 d3 Nf6 Bg5?! [Nc3]
d6 O-O?! h6 Bh4 g5 Bg3 h5! Nxg5 h4! Nxf7 hxg3!!
\toD{hxg3!!} Nxd8 [Nxh8 Qe7! \threat<Qh7> Nf7 Bxf2+
Rxf2 gxf2+ Kxf2 Ng4+ Kg3 Qf6 Qf3 Qg7\BBetter] Bg4
Qe1 Nd4 Nc3\onlymove [h3 Ne2+ Kh1 Rxh3+ gxh3
Bf3\#] Nf3+! gxf3 Bxf3 \toD{Bxf3} \resigns|
\begin{figure}[h]
\makediagrams
\end{figure}
\end{flushleft}
\end{document}