If this is going to use a script engine, you should run just one command from each person's code, taking turns:
"a=5" for person one
"if b=3 then" for person two
"b=3" for person one
"attack=1" for person two
...
So if someone has a lot of code it keeps the game fair.
And maybe have linepick using up 10 turns (skipping 10 turns)
Counting millisecs is a bit unfair and what happens if someone makes an endless loop?
"a=5" for person one
"if b=3 then" for person two
"b=3" for person one
"attack=1" for person two
...
So if someone has a lot of code it keeps the game fair.
And maybe have linepick using up 10 turns (skipping 10 turns)
Counting millisecs is a bit unfair and what happens if someone makes an endless loop?