Roman Silakov
Roman Silakov

Reputation: 195

Server for android game

I am going to create game for android, this game has multiplayer mode, so it should send ang get some data from server.

Lets assume that 5 players are playing this game. Each player on his turn sends a word to server, server checks if this word is correct and then server sends this word to other players.

Also server has some kind of timer, and when times goes out it sends to all player then time is up.

Very simple.

Now what is my problem. I have never done web programming and I don't know how to implement server side. Google gived me several options:

What should I use? One of this options or something else? Also what frameworks/libraries can be helpful in implimentation? I'd prefer python (like CherryPy if http server is good for my purpouses), but also I can do it on java or c++. Or on php (but I don't want to use it)

Update

After thinking for a while I used python tcp socket server. It seems to be most lightweighted solution for my needs. Also it is easy to interact with it from Java.

Upvotes: 2

Views: 1475

Answers (2)

gfortune
gfortune

Reputation: 2629

Consider using Twisted Python and roll your own simple protocol using persistent connections.

Alternatively, use a normal HTTP(s) server like Apache or nginx and WSGI to tie in your python backend logic. To make it appear as if you have a persistent connection (used to notify everyone of the "word" that was submitted or the expiration of a timer), you'll need to use something like AJAX.

Upvotes: 1

j_mcnally
j_mcnally

Reputation: 6968

Have you considered using parse?

https://parse.com/

Another good option I like is NodeJS, however you will get alot of the same benefits such as Asynchronous Concurrency from Tornado (Python)

Upvotes: 1

Related Questions