Git Product home page Git Product logo

lifeislife's Introduction

Life is life

Screenshot

A game somewhat similar to Conway's Game of Life.

There are 3 types of chunks: empty, grass and rock. Also there are 2 types of animals: cows and wolves. The rules are:

  • At the beginning of every turn, a chunk of grass may spawn at random location.
  • If a cow moves to a chunk with grass, it eats it.
  • If a wolf encounters a cow, it eats her.
  • If an animal is too hungry (like 50 turns without food), it dies.
  • If an animal is 80 turns old, it dies.
  • If an animal is content and at least 20 turns old, it may spawn a copy of itself.

Building and running

That's a NetBeans project, so the simplest way is to load it into NetBeans and use the usual buttons.

Alternatively, you can use Ant. Try ant jar and ant run.

lifeislife's People

Contributors

m1kc avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

lifeislife's Issues

array out of bounds

     [java] Moved to: 21,15
     [java] Moved to: 16,9
     [java] Processing: eating...
     [java] Eaten somebody: 28,21
     [java] Exception in thread "Thread-0"
            java.lang.ArrayIndexOutOfBoundsException: 986 >= 986
     [java]   at java.util.Vector.elementAt(Vector.java:474)
     [java]   at lifeislife.World.step(World.java:101)
     [java]   at lifeislife.MainFrame$7.run(MainFrame.java:181)
     [java] Fast forward: 3 cycles done.
     [java] Fast forward: 4 cycles done.

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.