Karumi / KataCoroutines

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Kotlin 100.0%