nettapper / gamecenter Goto Github PK
View Code? Open in Web Editor NEWWhat may become a Java Server to host pluggable game and allow for clients to connect via the HTTP protocol.
What may become a Java Server to host pluggable game and allow for clients to connect via the HTTP protocol.
When server and client are running on 2 computers the client is not receiving the data from the server.
Change the port number variable when creating the server to be a 'protected' class variable
*Object is higher than Object[]
Recommend to use Gson lib in Java to send JSON objects from client and server.
Gson link http://code.google.com/p/google-gson/
The handleData method will handle data from the client by printing out strings or using gson to de-sterilize the json.
No matter what the client puts as the path the ClientManager class will read the path as "/help"
I believe the problem is here:
public void handle(HttpExchange exchange) {
...
String getPath = exchange.getHttpContext().getPath();
System.out.println("getPath: "+ getPath); // Debugging
...
}
Client needs a way to display the entire board
The easy server code should be merged in to the client manager class to fit the architecture of the GameCenter
The EasyClient class should be moved in to it's own project and kept separate from the GameCenter
Game should support two clients
Example: Guessing numbers between "0" to "10"
Change the client manager class to include 3 new protected class variables. 1 for the IP address, 2 for the port number, and 3 for the path(the '/di' part of the code)
the try block in the handle method that reads the data needs to be updated to remove the unneccary characters at the end of the output line
The handleData method will handle data from the server by printing out strings or using gson to de-sterilize the json.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.