GithubHelp home page GithubHelp logo

wiz-rd / simplesim Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

A *very* simple simulation I wrote in Java for fun one day. I just was curious if, given a pool of entities, the strongest was guaranteed to win most often or if it was always a mixed bag.

License: GNU General Public License v3.0

Java 100.00%

simplesim's Introduction

simpleSim

A very simple simulation I wrote in Java for fun one day.

The Idea

Well, to be honest, there isn't much to it. I was just wondering one day how much the strength of a given entity would affect it's ability and consistency of winning (in a battle-royale style environment. That wasn't my intention per se, but that's more or less what the result is), so I wrote a very basic gui, entity object, and ai for a given amount of entities, gave them all random attributes (including health, damage, and a small likelihood to be pacifist and not damage others) and set them all into a small field to face off against each other.

The Attributes

The attributes I have so far for each entity (including unset or subject-to-change ones) are: health, damage, speed (currently static due to how I implemented movement), friends - individuals the entity won't attack, and name (random, kind of useless at the moment).

Pacifists?

Pacifists are a 1/10 chance when an entity is created, and they only "shoot" bullets that heal their targets. They also consider everyone their friend. This, in conjuction with the fact that entities have a chance to befriend someone who heals them, can cause a somewhat unintended phenomenon where two players team up and assist each other in the environment. I tried to make the pacifist entities pure white for clarity, but I don't think that always works, unfortunately.

simplesim's People

Contributors

wiz-rd 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.