I've been playing with implementing an online bridge game (as in cards), and am thinking about creating an AI. I'm wondering whether I could get away with saving server resources by putting the AI into the client. This would make scaling up far easier, but I'm not sure about the limitations placed by browsers on wasm code.
The biggest issue is that I'll probably have peak memory use in excess of a gigabyte. Does anyone know at what point the browser will declare that too much? Are there other issues I should worry about?
Right now I have no AI code (well, a random AI) so I can't benchmark, but can estimate how many possible plays I'll need to cache.