Open robblamb opened 11 years ago
I am going to do this. This should give me everything I need for the individual marks portion while making sure that you two get the credit for the hard work you have done (i.e. the rest of the project other than my test cases). Also, this makes sure that we have networking which is required by the project requirements.
For painting I am thinking that we must pass the game board object between the clients and the server. I will let you know more as I find out more. Just thought I would let everyone know.
Possible solution?
We still need to create a game engine class (should act as the controller), what if the server / game engine keeps track of the board, and using RMI each player can move their piece and get the location of all the other pieces / blocks. That way all the client has to do is draw the board.
The easiest solution, at least for me, would be to have the key listener able to be its own thing. That way I could simply run the key listener on the client and call the tryMove (which would be running on the server) as it is set up now. I think for the painting it would be easiest to simply have a copy method which returns a copy of the game board object. That way I could paint the copy.
Simply put: we need to network the players together over different machines