Language-independent – Create a server to arbitrate a simple game

I created a simple game where 2 players make choices at the same time in each round, and the winner of the round is determined by a set of game-specific rules. Like the working principle of Rock Paper Scissors.

I hope to be able to provide this game online, where 2 players can find and play against each other. There will be some central servers to arbitrate the game, and then each player will Use some game clients of his choice that we will provide (i.e. web-based, mobile-based, Flash, etc.) to interact with the game.

Obviously, players can also fight against the computer opponents we can provide. I also I hope to allow programmers to submit computer programs written by them to act as players and play against other programs in some kind of tournament.

I realize that the specific details of my game certainly need to be written from scratch, but it seems All the work that the server has to do to communicate with customers and keep the game state may have been completed many times before. This may be most of the work.

Does anyone have any ideas on how to do this quickly and easily? idea? Is there a server that can use some kind of standard interface to abandon new games? Is there some kind of open source game server? What would you do?

Since the client only communicates with the game server occasionally (not continuously), the web framework should be able to act as Your “basic game server”. Although you can make web frameworks to provide “web pages”, they can of course (ab) be used as request handlers.

This of course will not force you to use The game becomes a browser game; an independent game client can be easily made, and can use basic http to communicate with your game server. I also heard that this thing called Ajax is very fun for this kind of thing.

< p>Not only will you find many ready-made http-based servers, as an additional bonus, there are more documents on how to use Web2.0®©™ instead of “game servers”. You just need to know that you want one that allows You can easily manage the session and receive/respond to the request of the web framework and the client library that can also be executed.

In addition, as you said, “keep the game state” falls within the scope of the actual game logic 100%. But many web frameworks provide good database support, and will definitely be useful for this kind of thing.

I created a simple game, 2 of them Players make choices at the same time in each round, and the winner of that round is determined by a set of game-specific rules. A bit like how Rock Paper Scissors works.

I want to be online Provide this game, where 2 players can find and play against each other. There will be some central servers to arbitrate the game, and then each player will use some game clients of his choice that we will provide (i.e. web-based, mobile-based, Flash Etc.) to interact with the game.

Obviously, players can also fight against computer opponents that we can provide. I also hope to allow programmers to submit computer programs written by them to act as players and compete in some kind of tournament. Battle with other programs.

I realized that the specific details of my game certainly need to be written from scratch, but it seems that all the server has to do to communicate with customers and keep the game state may have been done many times before. This is probably most of the work.

Does anyone have any ideas on how to do this quickly and easily? Is there a server that can use some kind of standard interface to abandon new games? Is there some kind of open source game server? What would you do?

Since the client only communicates with the game server occasionally (not continuously), the web framework should be able to act as your “basic game server”. Although it can provide “Web” and make web frameworks, but they can of course (ab) be used as request handlers.

This of course will not force you to turn the game into a browser game; independent game clients can Easy to make, and you can use basic http to communicate with your game server. I also heard that this thing called Ajax is very fun for this kind of stuff.

Not only will you find many ready-made http-based Server, as an added bonus, there is more documentation on how to use Web2.0®©™ instead of “game server”. You just need to know that you want a web framework that allows you to easily manage sessions and receive/response requests And the client library that can be executed as well.

In addition, as you said, “keep the game state” within the scope of the actual game logic is reduced by 100%. But many web frameworks provide good Database support, and will definitely be useful for this kind of thing.

Leave a Comment

Your email address will not be published.