Re:Battleship
by onionisafruit on Saturday April 02, 2022 @06:11PM
(#30892117)
I worked on something like that for a while that I never finished. One of the stumbling blocks was executing untrusted code. I settled on having players either connect via websocket or receiving webhooks and having to respond in a given time frame.
[ Parent
| on HN ]
I don’t understand the executing of entrusted code part. If the instructions are plain text, how could it even be a problem? The instruction FIRE(5,7) isn’t going to turn into a zero day exploit, right?
How did you decide to fire at 5,7 though?
In a game of battleship it’s a human player who would write down the text, correct? But that doesn’t matter at all. It seems to me it could be a very simple text protocol with literally zero chance of binary execution exploits