Skip to content
سید محمد رضی موسوی edited this page Jan 27, 2015 · 7 revisions

what is JGFramework?

JGFramework is a java framework for turn base games that developed for Java Challenge 2015. It provides many features that you need for a simple multi player game. This framework has 3 parts :

Server

The game run in server. As mentioned, this framework support turn base games. It means that time is discontinuous. The game trend will determined by Events. In each turn, objects give some event to server; Server will assign this events to simulator. Then simulator check present state and all events and calculate next state. Server will send changes to clients and clients will send its events to server again. This flow will continue until the end of the game. Also server send changes of game state to UI at the end of each turn.

Client

Each player of your game is a client. In the beginning of each turn, server send information of the past turn and client can determine what want to do and send several events to server according to its demand.

UI

UI will show the game to who want to see it. Server send the information of each turn by tcp connection to UI. In this project we don't implement UI. However we have a node.js server and will share it.

you can see more detail in Architecture

Clone this wiki locally