Giter VIP home page Giter VIP logo

fly-apps / tictac Goto Github PK

View Code? Open in Web Editor NEW
346.0 4.0 28.0 1.57 MB

Demonstration of building a clustered, distributed, multi-player, turn-based game server written in Elixir.

Home Page: https://fly.io/blog/building-a-distributed-turn-based-game-system-in-elixir/

License: Apache License 2.0

Elixir 83.39% CSS 1.59% JavaScript 3.72% HTML 9.48% Dockerfile 1.29% Makefile 0.10% Shell 0.43%
multi-player elixir game liveview global

tictac's People

Contributors

brainlid avatar iwarshak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tictac's Issues

Play via internet, with a domain name?

Once deployed on a VPS, with a domain name, will I people be able to play in it via internet? For in the article it's described how to play in it via connecting to an Elixir node

License

Hello

First let me say your poc is really great. I'm studying it to implement my own multiplayer card game and it seems to have everything you could want.

One question I have is : I can't seem to find a license (which means if I'm not wrong it's impossible to use the code).

Is it an oversight? Could I use your repo as a base for a commercial game for example?

Thanks by advance for your answer And again : great job ๐Ÿ‘

Occasional Horde Registry Lookup Misses

Hey, Mark! Thanks for this excellent repo, it was my entrypoint to learning Elixir/Phoenix and I've been enjoying it very much.

I've built a game system based on the ideas in this project and everything is working nicely locally, and is working most of the time in a clustered deployment.

However, I'm having an unfortunate occasional issue where a new game gets registered, a PID is initially returned, but upon looking up the PID using Horde.Registry.lookup(MyApp.GameRegistry, game_code), it returns nothing. I'd say this happens for about 1 in 10 new games. I can see that the clustering is working fine otherwise from Node.list

I saw you talk about this issue here:
derekkraan/horde#225 but having that configuration doesn't seem to solve the problem I'm having.

I was wondering if you've got any thoughts about what could be happening here. Is this a race condition? Is there any reason I couldn't store the PID after creation to a database as a fallback?

Thanks so much!

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.