Giter VIP home page Giter VIP logo

gameoflife's Introduction

GameOfLife

An Android implementation of Conway's Game of Life, focusing on clean design and implementation

About Game of Life

About the app

Changeable automaton rules, presets, and interactive board. Some interesting outcomes:

About the code

Used technologies

Running tests

Type ./gradlew app:test.

Results can be checked in the generated HTML under app/build/reports/tests/debug/index.html

Tampering around

The code is intentionally implemented in a way to make it easy to create other types of cellular automata. Feel free to fork it and play around. For a starter:

  1. Add your own implementation for Rule and CellularAutomata, and for CellColors if your automaton needs more than a basic dead / alive coloring:

  2. Use them in:

  3. If you're interested how the transformation is done, check:

  4. Have fun and message me if you create something cool!

Known limitations

The approach used in the transformation logic is that only cell state changes are observed, and a counter of dead / alive neighbors is updated in every surrounding cell. By using the ThreadedGridTransformer it's fast enough to be smooth for Game of Life and most other rules. However, rules resulting in lots of changes around the screen might slow the game down.

Translations

A big thank you to the translators:

  • Croatian by Lotti Sándorfi
  • Estonian by Angéla Nagy and Berit Puidet
  • French by Angéla Nagy
  • German by Zoltán Török
  • Latvian by Rolands Pragulbicks
  • Russian by Natália Szvetlána Vaszkevics
  • Ukrainian by Natália Szvetlána Vaszkevics

gameoflife's People

Contributors

zsoltk avatar

Watchers

James Cloos avatar Robson Campos 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.