This crate provides a method to interact with Balatro when used with the mod at https://github.com/remotro/mod
Sample Implementation:
use Remotro;
use *;
let mut remotro = host.await.expect;
loop
This code will attempt to open a port and wait for the mod to connect to it, then continually matches the current screen, running the code specified for each screen