Giter Site home page Giter Site logo

genetic-car-2's Introduction

Genetic Cars 2: About

Multiplayer Genetic Cars PubNub

This game is connected to the world, all players are sharing their best cars each game round.

Only the dominant cars win.

The TOP car from each player in the world is added to your car list each game cycle.

This car is therefore added to your gene pool and is then genetically spliced and paired with your other cars.

Top cars are transmitted around the world from other players who are online RIGHT NOW using WebSockets style technology for data streaming ( PubNub ).

PubNub Real-time Network

Do you like this freebie? Want to get more stuff like this?

Subscribe to @PubNub news and updates to stay tuned on great designs.

Genetic Cars 2: Options/Controls

Join World: The same seed always creates the same track, so you can agree on a seed with your friends and compete. :)

Mutation Rate: The chance that each gene in each individual will mutate to a random value when a new generation is born.

Genetic Cars 2: HTML5 Canvas Graphs

Red: Top score in each generation.
Green: Average of the top 10 cars in each generation.
Blue: Average of the entire generation.

Genetic Cars 2: But what about JavaScript?

This program uses a simple genetic algorithm to evolve random two-wheeled shapes into cars over generations. Loosely based on BoxCar2D, but written from scratch, only using the same physics engine (box2d).
seedrandom.js written by David Bau. (thanks!)

Genetic Cars 2: Distributed Genome Connectivity

The genome consists of:
- Shape: (8 genes, 1 per vertex)
- Wheel size: (2 genes, 1 per wheel)
- Wheel position: (2 genes, 1 per wheel)
- Wheel density: (2 genes, 1 per wheel) darker wheels mean denser wheels

Genetic Cars 2: JavaScript Random Genetic Generation

This is not as deterministic as it should be, so your best car may not perform as well as it once did. The terrain gets more complex with distance.
I'm not in the mood to deal with checking if all scripts have loaded before running, so refresh the page if things seem whack.

genetic-car-2's People

Contributors

stephenlb avatar tianon 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  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

genetic-car-2's Issues

Enhancement Request: Add world seeds to easily generate consistent terrain

In the older versions the seed controlled the terrain. With 2.68, the "world name" really only controls the cars that are being saved and passed around.

Change the "world name" designator to "car set" or similar and add another world seed so competing players can be using the exact same world.

It would also be nice to be able to select a particular car design and add to the existing run. It would make it easy to import cars into new world sets.

Optimal car

On /r/NSIP I saw many posts where people share seed of a good car.

But has there been any project or any other form of search for the most optimal car?

Preferably for the mutable terrain, as we would probably want it to do well on various tracks.

Since we have multiplayer version of genetic car already at http://gencar.co would it not be easy to make a version that shares currently best seed (or top few seeds) with all site visitors and then make visitor share the seed with the server in case visitor manages to mutate car into a better version.

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.