Skip to content

Transform this game-of-life sequential implementation to a parallel version with Kotlin coroutines

License

Notifications You must be signed in to change notification settings

Karumi/KataCoroutines

Repository files navigation

Karumi logo Kata Coroutines in Kotlin

  • We are here to practice the usage of Coroutines.
  • We are going to use Kotlin.
  • We are going to practice pair programming.

Getting started

This repository contains a Kotlin implementation of the Conway's Game of Life

terminal

The code is really simple and it's just a naive implementation of the algorithm. It is sequential, that means that for every single generation it calculates the value of each cell for the next generation, one by one.

To verify the correct behaviour of your code you can execute:

./gradlew runGameOfLife

Tasks

Your task as a Kotlin Developer is to transform the implementation to make it parallel. You will use coroutines to achieve it.

Considerations

If you get stuck, with-coroutines branch contains the finished kata.


Documentation

There are some links which can be useful to finish these tasks:

License

Copyright 2019 Karumi

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.

About

Transform this game-of-life sequential implementation to a parallel version with Kotlin coroutines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages