Code Monkey home page Code Monkey logo

simulation-of-life's Introduction

Simulation-of-Life

Map-based simulation of animals' behavior. This program allows users to observe animals moving, feeding, and reproducing, while presenting statistical data through charts. The project was designed for the UST AGH object-oriented programming class.

Game rules

  • Animals have to move each day. The position change costs energy.
  • Consuming grass allows gathering some energy for the future.
  • A pair of animals on the same field can reproduce if sufficient resources are available.
  • Way of moving is based on the parent's genome and random factors.
  • Animals in energy deficit die.

Development Technologies

  • Java with object-oriented concepts
  • JavaFX for the user interface
  • Functional programming techniques to work with streams
  • Basic design patterns

Options

Map variants

  • Earth
  • Hell

Growing variant

  • Equator - plants in the center of the map has more % to spawn.
  • Toxic corpses - plants prefer to grow on tills where fewer animals have dead.

Mutation Variant

The genomes are from 0 to 7. They map direction of the world

  • Full random - Mutations are not predictable
  • Slight Correction - Mutations are more predictable because the genome can only mutate one step up or down( in example genome is set to 6, so after a mutation it could be 5 or 7)

Behaviour Variant of animals

  • Full predictable - Animals move according to their genomes.
  • Crazy moves - There is a change that animal will move in random direction without following his genomes.

How to run

./gradlew run 

Preview of main features

Main menu

Create new simulation tab

Simulation

First day

100 day

simulation-of-life's People

Contributors

xmorox 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.