Git Product home page Git Product logo

akka-workshop-cluster's Introduction

Akka Workshop Reloaded

Example Solutions

There are three different solutions. You can turn them on/off in Main.scala.

CopyTheBestActor

The CopyTheBestActor is very lazy and lets the other actors do the hard work. It simply waits for the other actors to broadcast their best robots which it re-broadcasts with your own name ensuring your name appearing at the top position in the high score table ;)

EvolvingActor

The EvolvingActor contains a population of robots which it evolves by sending itself messages to mutate (MutateRandomRobot) or crossover (CrossoverRandomRobots). This is the actor that achieved the almost perfect score of 97980 during the workshop. It evolves the population slow but steady.

PopulationActor, MutationActor, CrossoverActor

A system of actors where the PopulationActor keeps track of the population and picks random robots which it sends to the MutationActors or to the CrossoverActors. This system uses every bit of CPU power your computer has to offer. It evolves the population very fast but also seems to get stuck at a local optimum very fast.

Quick-start project

  • Eclipse and IntelliJ IDEA SBT support plugins already configured
  • Requires SBT 0.13.0 (if you have an older version, remove the Eclipse SBT plugin from project/plugins.sbt)

How-to: use this project

  1. Install SBT! See http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html
  2. Clone this repository to your local computer
  3. cd akka-workshop-cluster
  4. Type sbt
  5. On the SBT prompt type either eclipse or gen-idea to generate Eclipse and IntelliJ IDEA project files.
  6. Import the project into your IDE.
  7. Start coding! ;-)

akka-workshop-cluster's People

Contributors

wwagner4 avatar papauschek avatar rafacm avatar alexanderdaniel avatar sebnozzi avatar felixamerbauer avatar acanda avatar

Watchers

James Cloos avatar Can Cobanoglu 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.