Jump to content

Trying to make Monopoly game...

- - - - -

  • Please log in to reply
9 replies to this topic

#1
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
But I've never used GUI before or opened any of my programs outside of eclipse. I heard that I should get netbeans because it has good tools to create GUIs more easily with swing. But I'm not sure. What do you guy suggest?

#2
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
The answer depends, as it usually does.
If you want to and/or have time to, I'd start reading a lot of GUI tutorials and program the game the dirty way. Don't be discouraged though, it's not as dirty as it may seem.

If you're on a deadline then I'd suggest using netbeans, though I don't know how bad the learning curve is for netbeans.
After skimming a few video tutorials for netbeans on youtube, it's probably not too difficult to learn.

But, from the looks of it, I don't see any type of tutorial/help for the type of work you want to do in netbeans. (I didn't look tooo hard though.)

#3
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
Yeah, I have about a week to learn it. So netbeans is the only option I am going to look at right now. Any links to tutorials to basics for noobs?

#4
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
Creating monopoly in a week is a harsh deadline. Do you have to implement the logic of the game or just create the interface?

As far as tutorials go, Google is your best source.

#5
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts

lethalwire said:

Creating monopoly in a week is a harsh deadline. Do you have to implement the logic of the game or just create the interface?

As far as tutorials go, Google is your best source.
lol, no I meant the gui. I have about 2 and a half weeks to do the whole thing. I have the details of almost each class down and how they're going to be implemented. And we have to actually make the game. I'm actually a senior so I'm going not going to have enough time to finish the whole thing but the juniors will take over the project from where I've left off.

#6
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
Okay, I got netbeans up and running and the drag and drop with properties is pretty straightforward. But I can't find any options for animation and graphics. Only panels, text boxes, buttons, etc.

#7
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP

Quote

But, from the looks of it, I don't see any type of tutorial/help for the type of work you want to do in netbeans. (I didn't look tooo hard though.)
Like I said before, I couldn't find anything to help you using netbeans. But my search was very skimpy. You'll need to google and research.
I'd also check with users experienced with netbeans before I started.

#8
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
Alright. I saw a game tutorial on youtube but it required that I have basic knowledge of jframe, swing, and other crap that I dunno. I know they're imports that you need to create a window. But that's all I know. I guess I'm just going to have to make a sucky monopoly game without a board and just telling you which space you're on right now.

#9
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
For now, I'm forgetting the GUI and just working on the logic of the program since I don't have much time.

I need your guys help.

I plan to do something like this:

Basically, and array of spaces for the board where the index for the board keeps track of where people are.
The Space class will be an abstract class and have subclasses for properties, utilities, RRs, freeparking/jail, etc...

It's been actually a really long time since I've played monopoly so I need to take a look at the rules again.

Tell me if my logic right so far
Possible Classes:
Players (max four)
Board including Array of spaces - Property is a space, jail is a space, and free parking is a space.
Card drawer has arrays of community chest and chance cards
Array of Community Chest Cards
Array of Chance Cards
Bank
Bank accounts for each player. Keep track of balance
Dice (2) random number generator

Players
Players have turns rolling dice
Each player has an icon or unique identity
Each player can own a property/space
Players can have cards
Players have money
Players have a bank of money

Board
Is an array of 39 spaces. If greater than 40 or equal to, subtract by 40.

Spaces
Space will be an abstract class. Subclasses include:
Utilities
Railroads
Properties
Free Parking
GO
Jail
Chance
Community chest

Subclass – Utilities

Subclass – Railroads

Subclass – Properties

Subclass – FreeParking
Do nothing

#10
stevie754

stevie754

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
keep me posted on how this turns out I was looking into doing something similar but gonna try teach myself swing first.

Edit - Best of luck




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users