NAGs translation
-
All the NAGs are here
chessgame-shizzle/thirdparty/pgn4web/pgn4web.js
starting from line 3000. I needed to display $18 as +- instead of the text “White has a decisive advantage”. To do that I changed the text in NAG[18] (line 3018) by +-. There isn’t NAG[19] because NAGs are paired starting from NAG[14]. So, to translate $19 as -+ I changed the line 3080 like this { NAG[i+1] = NAG[i].replace(“+-“, “-+”); }
Now PGN text is displayed like in chess books. Maybe someone needs it too.
- The topic ‘NAGs translation’ is closed to new replies.