Can I change to another game
Thanks for sharing the source code
I tried virtuanes
GAME : Super Mario Bros
PATH_ TO_ GAME = "D:/nes/VirtuaNES.exe"
if keyboard.is_ pressed('a')
if keyboard.is_ pressed('d')
if keyboard.is_ pressed('w')
if keyboard.is_ pressed('s')
....
import mss
# Read full screen or process screen
Can you try out a tutorial with virtuanes
Hey, thank you for your suggestion!
There already are successful implementations of AI (both using genetic algorithms) for playing Mario: https://youtu.be/CI3FRsSAa_U https://youtu.be/qv6UVOQ0F44
Might try my CNN approach for Mario some time in the future, but for now I like to try games that haven't been done before and I have two ideas I'd like to do before. Will comment here once I tried it though!
https://youtu.be/CI3FRsSAa_U https://youtu.be/qv6UVOQ0F44
This is dependent on the gym environment and cannot be separated from the environment
You need to play any game, not gym environment
It is suggested that the framework can play any game, so it can also play Android simulator games
Instead of relying on Gym
My suggestion
Your frame can play all games
# Get process
os.getpid()
# Get an image of the process
from mss import mss
# Operate mouse and keyboard
pyautogui