you can use cheat engine and find the variables, then use js to alter them in real time on your server, if you have the core engine or run a script over the game itself, like lets say you embed the game on your website but you want to be able to read the score inside the game and alter it call a trigger on player death etc.
however this is not recommended unless you have the consent of the game developer.