For message passing between 2 or more programs, perhaps have a quick looks at the samples that come with LitDev extension in the client-server folder (maybe LDServerAuto.sb and LDClientAuto.sb). Run to compile the sever and client versions, then run the server program and one or more client apps. It is possible to have communication between multiple clients on one PC, several PCs on a home network or even hosted over the internet.
The advantage of this kind of thing is that syncronicity is handled for you through events so each client can know what the others are doing and hence the current state of the game. This will be more reliable than files or other message passing and allow for faster interaction in a snake/rabbit type game. All that really needs to be passed is the client key presses, so the game could initially be written for 2 or more human players - when that works turn it over to write the AI to take over from human players, just sending key presses.
The advantage of this kind of thing is that syncronicity is handled for you through events so each client can know what the others are doing and hence the current state of the game. This will be more reliable than files or other message passing and allow for faster interaction in a snake/rabbit type game. All that really needs to be passed is the client key presses, so the game could initially be written for 2 or more human players - when that works turn it over to write the AI to take over from human players, just sending key presses.