GithubHelp home page GithubHelp logo

bomberman-server's People

Contributors

hagesjo avatar

Watchers

 avatar  avatar

Forkers

drahakar

bomberman-server's Issues

Provide a full example of a client code

Hello, friend!

I'm looking for a bomberman server, could you help me, please? Looks like your project is good enough for me, but I've got a trouble understanding a protocol between client and a server.

Could you provide a working example of client.py? Right now I've got this when I try to move player somewhere:
Server:

2017-04-12 18:06:59,219 INFO Client sent message: {"type": "move", "direction": "down", "plant_bomb": false}

Client:

mdown
>

And nothing happens.

Make an entire dict of the world_map instead of splitting it up into dicts of objects.

If possible, this should be a better solution I think.

Right now, when checking what's on a tile, all dicts of objects has to be gone through in order to find what type of object is on the tile.
There's not really a performance issue with the current solution, (O(n) where n is total number of types of objects), but the code gets a bit repetitive and ugly on these checkups.

I'm still not sure if this actually is needed though.

Support for multiple games at once

Right now, all players who register will be registered into a single game. They should be able to join different games.
This is of course a must-have feature, and shouldn't be too hard to implement.

Spectators for a game

Make clients be able to register as spectators (so the server doesn't wait for a move from that player within a game) to make frontend-applications able to show games in real-time.

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.