Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-07-2003, 10:02 AM   #1
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
source code sites...

Does anyone know where i can find source code for a monopoly game(console, not win32)? I want to get an idea as to how the game would be organized and what the structure would be like.

Thankss
GSXdan is offline   Reply With Quote
Old 11-07-2003, 10:42 AM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
There are a lot of places you can find source code for Monopoly. Just do a Google search. It looks like most are for Windows programs, though, but they should still be good for non-graphical things, like how to represent things in code.

Also, when you are doing OOP, it is a good idea to just sit down and think over what your object should be before you do anything else like look for code. Think of an actor in the system, then think of the properties that actor has (obviously coded as properties), as well as the things that actor can do (coded as methods).

For example, in Monopoly you have a player. A player has the properties of how much money in its account, its position on the board, and a list of things it owns. So those are pretty good candidates for properties. A player can roll the dice, buy something, or mortgage something. Those are good methods.

OOP requires a lot of thinking before any coding.

Last edited by doctorgonzo; 11-07-2003 at 10:46 AM.
doctorgonzo is offline   Reply With Quote
Old 11-07-2003, 04:05 PM   #3
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
Yea we are doing this as a class, not really an assignment. We went over what main classes we need, ie Board, player, game and using inheritance with subclasses. I just wanted to see some structure examples, just see what other people have done.

But yea i was looking and most are for windows, but i might as well take a look at those even though i dont understand any of the windows programming.

THanks
GSXdan is offline   Reply With Quote
Old 11-07-2003, 04:13 PM   #4
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
I saw one in Java, which should be easy to read. Java and C++ are pretty similar in syntax, especially with regards to classes, inheritance, and so on. At least you can see what classes they think are necessary.

It's located here: http://www.planet-source-code.com/vb...=2065&lngWId=2
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2