Hey /g/uys I am in a machine learning class, and we need to implement AI somehow for our final project,I want to wite a program thatll learn to play games, but i dont know how to read data from the screen.
Are there any good libraries or programs I can use thatll help me do that?
>>56930837
look up learnfun & playfun
don't read from screen, that's asking for trouble.
>>56930837
Why not look up an open source emulator? I found an nes emulator written in JavaScript once and it was pretty easy to just read it's memory since it was all just in an array. Figure out where the framebuffer is in ram and it's pretty easy to extend and process it during emulation. Just find an emulator in your chosen language and for a chosen system and extend it with your ai routines.
What sort of games?
>>56930837
#void.read.data.from.screenai.
type.invent.new.way.no.errors.allowed.
thats the AI for you
Teach your AI to read from the screen using machine vision :D
I agree that you should probably avoid reading the screen. but if thats not an option for some reason your gonna want to look into computer vision OpenCV is a decent place to start. Pain in the ass to install on a windows machine. I would recommend a linux or unix.
>>56930837
reading from the screen isn't really the hard part, you can hook into directx/opengl and capture output pretty easily afaik. the issue is you'll be doing a bunch of image recognition on top of having to develop gaming AI. you should probably just train your AI on a custom game that you can communicate directly with, or get a program to examine memory like cheat engine and try to figure out where relevant data is stored.
Teach your ai to shitpost on 4Chan so that Hiroshima can ban everyone and use bots instead of us to save money
>>56933114
this. do this.