You can make it kinda "interactive". People have built a chess game and I've built a mastermind game on my GitHub Profile as well.
The catch is that, since we're relying on GitHub Actions to execute your script, you'd have to wait for about 30s to see any changes on your readme :)