Implementation for the famous game of life. This projects is a result from the Software Bootcamp (by Carlos Obregon), also is inspired in the book Elegant Objects.
The main idea of the world instance is to evolve with every step, and every call to next()
should create a new World state, based on a true immutable object.
When using the FileWorld
class you can use the same functionality as the RealWorld
class, so
now you can provide an String with the file path, to load the entire game.
This is just a call in a loop printing the value of the current step
All the code was created using TDD, so it was more easy to create the implementation.
Made with ❤️ by Cristian Gómez.
Copyright 2018 Cristian Gómez
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.