Git Product home page Git Product logo

rusty-days-2020's Introduction

Cellular Game of Life

gif

Rules

states

A cell may be in one of those four states: male, female, tired (female), child or hunter.

Behaviour

  • When a male and a female are near enough, they make a child.
  • A child after a certain period of time will count the number of males and females around him:
    • if there is noone around, it will become a hunter
    • if there are more males than females, it will become a female
    • else it will become a male
  • When an hunter is near enough to a cell, it will kill the cell.
  • If the hunter does not find a cell in a given period of time, it will die.

Movements

All the cells normally goes at a constant speed towards a given direction.

  • Males try to follow females that are on their field of view.
  • Hunters try to hunt everything except for hunters that are on their fields of view.
  • When a male and a female make a child, the female slows down for a while.

Fields of view

Hunters: their field of view is a circular sector of the circle centered on them with a given radius and angle, pointed towards the direction they are moving

Other Cells: their field of view is a circle centered on them with a give radius

Inital state

The inital state and all the properties of the simulation can be modified inside config.json

Hackaton rules

The topic of this year's hackathon is "Emergent phenomena", or if you prefer - "Amaze us with simple rules". Create an amazing result with simple ruleset. If you heard about cellular automaton, fractals, or similar constructs - this is what we are talking about.

rusty-days-2020's People

Contributors

rimpampa avatar marcoieni avatar

Stargazers

Ajinkya Borade avatar

Watchers

James Cloos avatar  avatar

Forkers

rust-wroclaw

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.