Have you seen the new verifier I wrote? It runs in the browser and already does what you're asking for (uses a vxSignature to calculate game results). Take a look at
this file to see how you could do it.
Thanks, that TypeScript looks great! Just tell me, please, (from) where should I import
./constants,
./utils/math and
./utils/vx ? Thanks!
You could just copy those from the verifier, they are all there. Just make sure you import the right dependencies and it should work.