Giter VIP home page Giter VIP logo

nikp06 / subwai Goto Github PK

View Code? Open in Web Editor NEW
112.0 6.0 20.0 68 KB

Scripts for training an AI to play the endless runner Subway Surfers using a supervised machine learning approach by imitation and a convolutional neural network (CNN) for image classification

License: MIT License

Python 100.00%
cnn game endless-runner ai machine-learning supervised-learning image-classification computer-vision

subwai's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @nikp06
  • ๐Ÿ“ซ How to reach me:
    YouTube: Niklas Petersen
  • ๐Ÿ‘€ Iโ€™m interested in sports, programming and machine learning
  • ๐Ÿ’ž๏ธ Iโ€™m continuously working on expanding my skillset
  • ๐ŸŒฑ Iโ€™m currently learning more about combining games and artificial intelligence as in my projects subwAI or icyAI
Subway Surfers Icy Tower
new_thumb new_thumb

subwai's People

Contributors

nikp06 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

subwai's Issues

not able to gather info

PS C:\Users\sasis\Desktop\subwAI-main> python ai.py gather
Starting the Game Subway Surfers!
Traceback (most recent call last):
File "C:\Users\sasis\Desktop\subwAI-main\ai.py", line 431, in
main()
File "C:\Users\sasis\Desktop\subwAI-main\ai.py", line 49, in main
gather_training_data()
File "C:\Users\sasis\Desktop\subwAI-main\ai.py", line 145, in gather_training_data
game = Game()
File "C:\Users\sasis\Desktop\subwAI-main\game.py", line 33, in init
subprocess.run(PATH_TO_GAME)
File "C:\Users\sasis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\sasis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\sasis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

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

No module for skimage when it's installed trough pip and conda

PS C:\Users\joche\Downloads\subwAI-main> py ai.py gather
Traceback (most recent call last):
File "C:\Users\joche\Downloads\subwAI-main\ai.py", line 1, in
from game import Game
File "C:\Users\joche\Downloads\subwAI-main\game.py", line 7, in
from skimage.metrics import structural_similarity as ssim
ModuleNotFoundError: No module named 'skimage'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.