Code Monkey home page Code Monkey logo

mafia's People

Contributors

alegostaeva avatar dependabot[bot] avatar golovnevs avatar lise-yy avatar lucasturci avatar yankovsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mafia's Issues

Добавлять пользователя, создавшего комнату сразу в комнату

  1. Хост заходит на сайт
  2. Как и любой другой пользователь хост сразу получает uid, который сохраняется в куку
  3. Создаёт комнату, генерируется код входа в комнату, uid хоста добавляется в комнату
  4. Другой человек заходит в комнату по коду, uid человека добавляется в комнату
  5. В комнате у каждого пользователя есть возможность указать имя, имя не является уникальным id пользователя, это просто имя в игре

Create a simple home page

Home page should consists of:

  • join form with code input and submit button
  • "Host a new game" button
  • link to admin page with all lobbies

Typescript

It would be great to have TS at least on backend (server/ folder), where all game logic belongs.

Db

For now we are using file system. Convenient for dev, but we need a proper db. Any key-value database will do I think.

Deploy

Set up deploy on digital ocean.

Use some github action to redeploy automatically on every push in master.

Web sockets

We need web sockets for fast two-way data exchange between client and server. The idea is to store all data on server and notify all clients about the changes.

We also need to integrate web sockets with nextjs.

Deleting a lobby deletes all lobbies

Steps to reproduce:

  • Create a first new lobby
  • Wait a bit
  • Create a second new lobby
  • Check the list at '/admin/lobbies' and see 2 lobbies
  • Wait for first lobby to expire (this is easier if you reduce LOBBY_LIFESPAN)

Expect:

  • /admin/lobbies Now shows just the second lobby

Actual:

  • /admin/lobbies Now shows no lobbies

Game design ideas

  • add some city layout and allow players to stay in some building overnight
  • also we can add indicators if you stayed in the same building with other players
  • if you leave a building when you are under suspicion

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.