fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
624 stars 195 forks source link

Implement fog_fen() #840

Open gbtami opened 5 days ago

gbtami commented 5 days ago

To prevent leaking FEN info in Fog of War games to the client side, the only correct solution is to create the "visible" FEN on the server side and send only that to the browser.