Programming Task The story Once upon a time, scientists discovered a certain species of "Escherichia Coli" that followed a magically precise pattern in their reproduction process. In the research papers the mathematical model of reproduction is described with these four principles: • Pre-condition: Each E. coli bacterium can be alive or dead and have up to eight neighbors, that are horizontally, vertically, or diagonal adjacent. • Principle (1): In an ideal two-dimensional world a new bacterium is born when it has three neighbors. • Principle (2): In contrast a bacterium dies when it is surrounded by more than three neighbors. • Principle (3): Luckily a living bacterium can survive when it is close to two or three neighbors. • Principle (4): Unfortunately with less than two neighbors a bacterium will die as well. Your task Please write a small program that can consume bacteria colonies (data sets) with different initial states and calculate the next state(s) for the given colony based on the four principles observed by the scientists. Your constraints § Use a version control system: Create a new empty repository on GitHub and add your code changes in small, well commented commits § Apply the TDD development cycle: Write tests first, do a commit, add the according implementation, do a commit, refactor... § Use these technologies: Java 8 with JavaDoc comments, JUnit 4 and Mockito for writing tests. § Apply timeboxing: Set yourself a timer of 90 minutes. When the time is up, just send us a link to your GitHub repo. (It is not required to come up with a holistic solution for the task.) § Bonus: Providing a GUI for the visualization of the bacteria states is optional. Good luck!
escherichia_coli's Introduction
escherichia_coli's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.