cloud8421 / rps

Example application to explore GenServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rps

GenServer under the microscope

Intro

The aim of this tutorial is to show some day to day techniques that can be used when working with generic servers. The codebase we will be working on is written in Elixir, but techniques can be applied to other BEAM languages as well.

The project requires Elixir >= 1.6.0.

After cloning the repository, we can checkout the starter branch and run:

mix do deps.get, compile

A basic integration test is included, which can be run with mix test.

Example application

The application represents the core engine for a game of rock, paper, scissors. If you've never played this game, please refer to the relevant Wikipedia page.

Features

  • Create game sessions
  • Players can join a session
  • After playing, the winner takes 1 point
  • Score is recorded in-memory for ephemeral glory
  • Playable via an IEx console

Structure

About

Example application to explore GenServer


Languages

Language:Elixir 100.0%