Coder Social home page Coder Social logo

samaraoliveiram / jelly-games Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 128 KB

A real-time game developed with Elixir and Liveview!

Home Page: https://jelly-games.fly.dev/

Elixir 95.00% JavaScript 1.83% HTML 0.59% Dockerfile 1.70% Shell 0.10% Batchfile 0.06% SCSS 0.72%
elixir game liveview multiplayer-game real-time

jelly-games's Introduction

Jelly

Jelly it's a multiplayer real-time game, made entirely with elixir!

How to play

  • Create a new game and send the game link to your friends.
  • When the game starts:
    • Players are split into equal teams
    • Each player writes down 3 words
    • After everyone submits their words, the first round begins
  • The game has 3 rounds
  • In each round, a player receives a word and their team has to guess it within a turn
  • Each turn lasts for 1 minute
  • Each correct guess is worth 1 point
  • When a turn ends, the next team plays
  • A round ends when all the words are guessed.
  • Each round has a theme:
    1. password: give as many tips as needed!
    2. mimicry: give tips by mimicking!
    3. one-password: give only one tip!
  • The winner of the game is the team with the most points

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

jelly-games's People

Contributors

samaraoliveiram avatar

Stargazers

 avatar  avatar

Watchers

 avatar

jelly-games's Issues

Fix broadcast problems in game

  • When someone finishes writing their words and press done, this event should be broadcasted to increase counting.
  • When restarting and team changes, sometimes it is not refreshed.
  • When who is playing changes sometimes not get broadcasted.

Feat: Game owner

When playing a game, things can be very confusing if actions that move forward the game status are available to everyone, so having those key actions restricted to the owner of the game would make it better as the owner usually the only one who knows how to play the game.

Who create a new game should be set as owner, and only the owner can interact with the key actions: start the game, move phase and restart.

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.