Giter Site home page Giter Site logo

swordey / car2dgame Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 30 KB

This is a 2D car game for AI algorithms such as Reinforcement learning or Genetic algorithm.

License: GNU General Public License v3.0

Python 100.00%
2d-car-game python pyglet ray-casting lidar-rays ai-algorithms genetic-algorithm reinforcement-learning

car2dgame's Introduction

Car2DGame

This is a 2D car game written in Python for AI algorithms such as Reinforcement learning or Genetic algorithm.

It is configured to be included as a submodule, so if you only checkout this repo, you need to make some modifications to make it work.

Fun facts

  • The track in the game is generated, and you can regenerate it any time
  • The car has a lidar on it
  • You can set the length of the lidar ray
  • You can set in which angles should the car have lidar rays
  • You can get the distance of the wall in each lidar ray in each state

How to use

  • You need to checkout this as a submodule
[submodule "Game"]
	path = Game
	url = [email protected]:swordey/Car2DGame.git
  • You need to override the GameWindow object
  • You can copy Game/main.py to main.py
  • It will have everything to control the car manually
  • Using it for learning algorithms checkout my genetic algorithm project.

Built With

  • Python
  • pyglet - The cross-platform windowing and multimedia library for Python

Authors

  • Kardos Tamás - Initial work - Swordy

car2dgame's People

Contributors

swordey avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.