GithubHelp home page GithubHelp logo

geneticmobs's Introduction

geneticmobs's People

Contributors

frodare avatar

Watchers

 avatar  avatar

geneticmobs's Issues

DNA Class

Build a DNA class that with methods to get and set the genes. It will be able to import and export a chain of longs. Possibly support a binary format, ASCII and array.

DNA Format

  • long 0 Traits
  • long 1 - n Behavoirs

Behavior Gene

Build a behavior gene class that can import and export to a long. Have getters and setters for all of the behavior factors for easy access.

Behavoir Gene Byte Format (single java long)

Gene Type

  • byte 0

    • nibble 0 Stimulus Code
    • nibble 1 Action Code
  • byte 1 Action parameter

Gene Behavior Values

  • byte 2 Distance from target

  • byte 3 Has target

  • byte 4 Nearby enemies

  • byte 5 Can attack

  • byte 6 Is moving, has a path

  • byte 7 Health

Traits Gene

Build a traits gene class that can import and export to a long. Have getters and setters for all of the traits for easy access.

Traits Gene Byte Format (single java long)

  • byte 0 DNA version
  • byte 1 Strength (2-5 hit points) affects size of mob
  • byte 2 Speed (0.5-1.5 m/s)
  • byte 3 Life Span (10-40 seconds)
  • byte 4 Health (6-13)
  • byte 5 Regeneration (1-4)
  • byte 6
  • byte 7

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.