Giter Site home page Giter Site logo

game-of-life's Introduction

<<<<<<< HEAD The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: Any live cell with fewer than two live neighbours dies, as if by loneliness. Any live cell with more than three live neighbours dies, as if by overcrowding. Any live cell with two or three live neighbours lives, unchanged, to the next generation. Any dead cell with exactly three live neighbours comes to life. The initial pattern constitutes the 'seed' of the system. The first generation is created by applying the above rules Simultaneously to every cell in the seed — births and deaths happen simultaneously, and the discrete moment at which this happens is sometimes called a tick. (In other words, each generation is a pure function of the one before.) The rules continue to be applied repeatedly to create further generations.   Problem. The inputs below represent the cells in the universe as X or - . X is a alive cell. - is a dead cell or no cell. The below inputs provide the provide pattern or initial cells in the universe. The output is the state of the system in the next tick (one run of the application of all the rules), represented in the same format.  

Input A: (Block pattern)

X X
X X                                           

Output A:

X X      
X X   

Input B (Boat pattern)

X X – 
X – X
- X -   

Output B

X X –
X - X 
- X -   

Input C (Blinker pattern)

- X -      
- X -     
- X -   

Output C

- - -
X X X     
- - -   

r

Build the project with maven

mvn install

Play the game in browser

mvn jetty:run

game-of-life

0a3079e4765967ad2279fa9a6367eb832af48eec

game-of-life's People

Contributors

sarvex avatar renovate[bot] avatar

Watchers

 avatar  avatar

game-of-life's Issues

Security Policy violation Binary Artifacts

This issue was automatically created by Allstar.

Security Policy Violation
Project is out of compliance with Binary Artifacts policy: binaries present in source code

Rule Description
Binary Artifacts are an increased security risk in your repository. Binary artifacts cannot be reviewed, allowing the introduction of possibly obsolete or maliciously subverted executables. For more information see the Security Scorecards Documentation for Binary Artifacts.

Remediation Steps
To remediate, remove the generated executable artifacts from the repository.

First 10 Artifacts Found

  • core/build/classes/main/com/wakaleo/gameoflife/domain/Cell.class
  • core/build/classes/main/com/wakaleo/gameoflife/domain/Grid.class
  • core/build/classes/main/com/wakaleo/gameoflife/domain/GridReader.class
  • core/build/classes/main/com/wakaleo/gameoflife/domain/GridWriter.class
  • core/build/classes/main/com/wakaleo/gameoflife/domain/Universe.class
  • core/build/classes/test/com/wakaleo/gameoflife/domain/WhenYouCreateACell.class
  • core/build/classes/test/com/wakaleo/gameoflife/domain/WhenYouCreateAGrid.class
  • core/build/classes/test/com/wakaleo/gameoflife/domain/WhenYouCreateANewUniverse.class
  • core/build/classes/test/com/wakaleo/gameoflife/domain/WhenYouPlayTheGameOfLife.class
  • core/build/classes/test/com/wakaleo/gameoflife/domain/WhenYouPrintAGrid.class
  • Run a Scorecards scan to see full list.

Additional Information
This policy is drawn from Security Scorecards, which is a tool that scores a project's adherence to security best practices. You may wish to run a Scorecards scan directly on this repository for more details.


This issue will auto resolve when the policy is in compliance.

Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: File contents are invalid JSON but parse using JSON5. Support for this will be removed in a future release so please change to a support .json5 file name or ensure correct JSON syntax.
  • WARN: Package lookup failures

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.2
  • Update dependency org.apache.maven.plugins:maven-pmd-plugin to v3.22.0
  • 🔐 Create all rate-limited PRs at once 🔐

Warning

Renovate failed to look up the following dependencies: Failed to look up maven package com.sarvex.gameoflife:core.

Files affected: web/pom.xml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
acceptance-tests/Dockerfile
web/Dockerfile
  • tomcat 10-jre8
github-actions
.github/workflows/codacy.yml
  • actions/checkout v4
  • codacy/codacy-analysis-cli-action 240c610b1b65402cda39c6355968ef50aa2c07ba
  • github/codeql-action v3
.github/workflows/codeql.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/datree-validation.yml
  • actions/checkout v4
  • tj-actions/changed-files v41
maven
acceptance-tests/pom.xml
  • org.easytesting:fest-assert 1.4
  • net.thucydides:thucydides-core 0.9.275
  • net.thucydides:thucydides-junit 0.9.275
  • com.googlecode.lambdaj:lambdaj 2.3.3
  • org.codehaus.groovy:groovy-all 3.0.20
  • org.slf4j:slf4j-simple 2.0.11
  • org.slf4j:slf4j-api 2.0.11
  • mysql:mysql-connector-java 8.0.33
  • org.apache.maven.plugins:maven-surefire-plugin 3.2.5
  • org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
  • net.thucydides.maven.plugins:maven-thucydides-plugin 0.9.275
build/pom.xml
core/pom.xml
  • org.apache.maven.plugins:maven-javadoc-plugin 3.6.3
  • org.apache.maven.plugins:maven-jxr-plugin 3.3.2
  • org.apache.maven.plugins:maven-surefire-report-plugin 3.2.5
  • org.codehaus.mojo:cobertura-maven-plugin 2.7
  • org.apache.maven.plugins:maven-checkstyle-plugin 3.3.1
deploy/pom.xml
  • org.codehaus.cargo:cargo-maven2-plugin 1.9.0
pom.xml
  • org.apache.maven.plugins:maven-compiler-plugin 3.12.1
  • org.apache.maven.plugins:maven-surefire-plugin 3.2.5
  • org.apache.maven.plugins:maven-release-plugin 3.0.1
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.1
  • org.easyb:maven-easyb-plugin 1.4
  • com.jelastic:jelastic-maven-plugin 1.9.5
  • org.apache.maven.plugins:maven-clean-plugin 3.3.2
  • org.jacoco:jacoco-maven-plugin 0.8.11
  • org.easyb:maven-easyb-plugin 1.4
  • org.apache.maven.wagon:wagon-webdav-jackrabbit 3.5.3
  • org.easyb:easyb-core 1.6
  • junit:junit 4.13.2
  • org.hamcrest:hamcrest-all 1.3
  • org.mockito:mockito-all 2.0.2-beta
  • org.apache.maven.plugins:maven-checkstyle-plugin 3.3.1
  • org.apache.maven.plugins:maven-pmd-plugin 3.21.2
  • org.codehaus.mojo:findbugs-maven-plugin 3.0.5
  • org.apache.maven.plugins:maven-enforcer-plugin 3.4.1
  • org.apache.maven.plugins:maven-project-info-reports-plugin 3.5.0
  • org.jacoco:jacoco-maven-plugin 0.8.11
  • org.apache.maven.plugins:maven-checkstyle-plugin 3.3.1
  • org.apache.maven.plugins:maven-pmd-plugin 3.21.2
  • org.apache.maven.plugins:maven-jxr-plugin 3.3.2
  • org.apache.maven.plugins:maven-javadoc-plugin 3.6.3
  • org.apache.maven.plugins:maven-surefire-report-plugin 3.2.5
web/pom.xml
  • org.eclipse.jetty:jetty-maven-plugin 11.0.19
  • org.apache.maven.plugins:maven-war-plugin 3.4.0
  • net.serenity-bdd.maven.plugins:serenity-maven-plugin 4.0.43
  • org.apache.maven.plugins:maven-antrun-plugin 3.1.0
  • org.apache.maven.plugins:maven-surefire-plugin 3.2.5
  • com.sarvex.gameoflife:core 1.0-SNAPSHOT
  • org.springframework:spring-webmvc 6.1.3
  • org.springframework:spring-core 6.1.3
  • org.springframework:spring-web 6.1.3
  • javax.servlet:jstl 1.2
  • javax.servlet:servlet-api 3.0-alpha-1
  • org.mockito:mockito-all 2.0.2-beta
  • org.easytesting:fest-assert 1.4
  • org.slf4j:slf4j-simple 2.0.11

  • Check this box to trigger a request for Renovate to run again on this repository

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.