Lets say I have a script called RPS that simulates rock paper scissors.For example lets say I run the script with $sh RPS.The script will echo paper and then prompt me for an input. Obviously if I type in scissors I will win.Is there a way to write a script that runs the RPS script, and then enters the prompts for me based on whether the AI used rock, paper, or scissors?
Responding to prompts automatically?
prompt;read