Skip to content

avbk/tictacflow

Repository files navigation

TicTacFlow

This example project is part of a KOTLIN/Everywhere Bremen Event. It demonstrates the basic usage of Flows within the realm of a simple tic tac toe game.

Slides

The slides can be found here: tiny.cc/keb-flow

Client

The client is configured to run on an Android emulator, because it uses 10.0.2.2 as Websocket URL. Feel free to change it in FlowGameFragment (line 151).

Server

You can find a simple server written in Python in the project main directory. To use it, first ensure that you have Python3 installed, and then install the dependencies with PIP:

$ pip3 install --user SimpleWebSocketServer

Afterwards you can start the server:

$ ./server.py

The server runs a websocket on localhost:8000 and will broadcast any message sent to it to any connected clients but the sender.

About

Tic Tac Flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published