Hi, I am interested in writing a C# application that wraps some functionality of the battle simulator. On the simulator's readme page it states this:
The stream can be accessed from other programming languages using standard IO:
echo '>start {"formatid":"gen7randombattle"}
>player p1 {"name":"Alice"}
>player p2 {"name":"Bob"}
' | ./pokemon-showdown simulate-battle
But I'm not quite sure exactly how to go about connecting my C# application to the talk to the simulator in this way. Is there any more detailed information on how to do this? Thanks in advance.
The stream can be accessed from other programming languages using standard IO:
echo '>start {"formatid":"gen7randombattle"}
>player p1 {"name":"Alice"}
>player p2 {"name":"Bob"}
' | ./pokemon-showdown simulate-battle
But I'm not quite sure exactly how to go about connecting my C# application to the talk to the simulator in this way. Is there any more detailed information on how to do this? Thanks in advance.