Code Monkey home page Code Monkey logo

tic_tac_toe's Introduction

Tic-Tac-Toe Gmae server

Documentation

For how to use the API to play the game in elixir shell, please see documentation in module TicTacToe.

For the explanation of the mechanism of handling concurrency and fault-tolerency, please see documentation in module TicTacToe.Router.

Test

To run the tests, please used

mix test --no-start

Background

This is a challenge assignment I wrote during the recruitment process of a company I applied.

Below are some of the original requirments that came with the challenge.

What we're paying attention to

  • if the project works & respects the spec
  • your approach to the problem
  • your tests
  • your use of OTP (if you decide to use it)
  • your domain modelling
  • your choice of technologies

The challenge: tic-tac-toe game

The challenge, if you decide to accept it, is to create a tic-tac-toe game server.

The rules

  • your project should be well tested because you're not a monster
  • your Git history should be meaningful
  • if your project involves a few different technologies, a docker-compose setup will be appreciated

Good luck! not that you need any :)

Tips

  • less is more
  • domain modelling is important
  • SOLID
  • choose the right tool for the right job.

Specs

The spec is deliberately lightweight, as we want to see how you are approaching the task and what solution(s) you can come up with.

  • the server needs to be able to handle multiple concurrent games
  • if a game crashes, we should be able to recover to a good state automatically
  • we should be able to play by launching your project with iex -S mix

tic_tac_toe's People

Contributors

lshi18 avatar bdubaut avatar

Watchers

wolfgangshi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.