• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monopoly Network game no ideea how to create  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi first of I would like to say that this probably will make many people mad for what I am about to ask but I have no more time.I am in my last year at coledge and for my final exam I chose to create a monopoly game in Java.I am still very much a beginner when it comes to programming so this is maybe why I am stuck with my project.I have developed the game to the point where it works to be played by two players , and against an AI(more or less).When I presented the project to my coordinating teacher 2 weeks ago he told me to create the game to be playable via the network.So as any beginner programmer I started to do my reasearch and this way I found out about sockets.I have been experimenting with them for two weeks and I can't seem to learn more on the subject then sending a string to the server and back.I only have 3 more weeks in witch I also have to wright the essay and that is not enought time for me to be able to complete the project.I posted the source code to my project here : http://www.2shared.com/uploadComplete.jsp?sId=V4MFcnpuEUqeLSbZ .I was hoping that someone could take a look at my code and provide a skelectron code at least for one method on how should I create the client/server relation for my project.
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This site is NotACodeMill.(⇐click) Noboby here will do it for you. If you ShowSomeEffort(⇐click) and TellTheDetails(⇐click) then people will be happy to guide you in the right direction.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I am in my last year at coledge 

seriously, if your spelling is that bad,
change to a course that has no language
requirements.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will point out, however, that if you are able to establish a connection, and to send a String in each direction, you've already got a lot of the work done. All you need to do now is define a simple protocol, such as, for example, 'player ID | new location | action taken | money paid/recieived', send that message in the appropriate direction after each turn, parse it on the other end, and make the move as if it had happened locally.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael, please remember to BeNice. Thanks.
 
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nistor..

How is the game of monopoly played?

The players roll two dice, this can be automated. The player does not have to "throw".

The bank can be automated, $200 for passing go etc.

The only choices players need to make on their turn are (not limited):
- To buy a property or not
- To place houses/hotels
- Sell/Mortgage property/houses/hotels to pay rent or fines
- Unmortgage property
- Use the get out of jail free card

So if you maintain the server side, manage the board, players positions, properties, cash etc.
all you really need to worry about is the interaction socket wise during a players turn.

sockets are fun, but you might be better off with a RESTful web service if this is a web-centric application

WP


 
Nistor Alexandru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:> I am in my last year at coledge 

seriously, if your spelling is that bad,
change to a course that has no language
requirements.


My native language isen't english.I am sorry about my bad spelling.
 
Nistor Alexandru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:Nistor..

How is the game of monopoly played?

The players roll two dice, this can be automated. The player does not have to "throw".

The bank can be automated, $200 for passing go etc.

The only choices players need to make on their turn are (not limited):
- To buy a property or not
- To place houses/hotels
- Sell/Mortgage property/houses/hotels to pay rent or fines
- Unmortgage property
- Use the get out of jail free card

So if you maintain the server side, manage the board, players positions, properties, cash etc.
all you really need to worry about is the interaction socket wise during a players turn.

sockets are fun, but you might be better off with a RESTful web service if this is a web-centric application

WP




The GUI is created by using swing so It's not a web base game aldo I wish I would have created a web based game things would have been much easier
 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nistor Alexandru wrote:I wish I would have created a web based game things would have been much easier

My guess is that you would simply have had a different set of problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!