VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This is a complete code for a monopoly game that I've made myself...The game itself is very very go

ACMOA  (7 Submissions)   Games   VB 6.0   Unknown Difficulty   Thu 29th January 2004   Mon 8th February 2021

This is a complete code for a monopoly game that I've made myself...The game itself is very very good-looking, but I don't have a website to

API Declarations



' Array used to hold names of players
Public PNAME(1 To 4) As String
' Array used to hold colors of players
Public PCOLOR(1 To 4) As ColorConstants
' Integer used to tell which player this turn is for
Public P As Integer
' Array used to hold the old position of the player
Public TEMPPOS(1 To 4) As Integer
' Type used to define properties characteristics
' PNAME = property name
' PPRICE = price of property
' PRENT = rent of property
' HOUSECOST = cost of one house
' HOUSERENT = rent of one house
' CASTLECOST = cost of one castle
' CASTLERENT = rent of one castle
Type PROPERTY
PNAME As String
PPRICE As Currency
PRENT As Currency
HOUSECOST As Currency
HOUSERENT As Currency
CASTLECOST As Currency
CASTLERENT As Currency
End Type
' Array used to hold the characteristic of all properties
Public PROP(0 To 35) As PROPERTY
' Array used to tell which property is owned by each player
Public PROPCHECK(0 To 35) As Integer
' Array used to check when a castle is built
Public CASTLE(1 To 35) As Boolean
' Array used to hold gold amounts with each player
Public GOLD(1 To 4) As Long
' Speed of the animation of the game
Public SPEED As Long
' Integer used to hold the gold amount that will given to
' a player who passes GO
Public GOGOLD As Long
' Array used for the "Get Out Of Jail Card"
Public FREE(1 To 4) As Boolean
' Array used to check which player is currently in jail
Public JAIL(1 To 4) As Integer
' Integers used in for loops
Public i, d As Long
' Integer used to hold the timed games time in minutes
Public GAMETIME As Integer
' Integer used to hold the seconds
Public SECTIME As Integer
' Arrays used for the scores and names of scorers
Public SCORES(1 To 10) As Long, FNAME(1 To 10) As String
' Variables used for the bubbles sorting of scores
Public PASSSCORE, TEMP As Long
Public TEMP2 As String
' Integers used to check which houses are currently built
' depending on the color of property and number of properties
' in a group

Public BrownHouse(1 To 2) As Integer
Public YellowHouse(1 To 3) As Integer
Public OrangeHouse(1 To 3) As Integer
Public RedHouse(1 To 3) As Integer
Public WhiteHouse(1 To 3) As Integer
Public BlackHouse(1 To 3) As Integer
Public BlueHouse(1 To 3) As Integer
Public GreenHouse(1 To 2) As Integer

' Integers used to check if a player has a complete set of
' a colored group, to make him/her able to buy houses

Public BrownGroup As Integer
Public YellowGroup As Integer
Public OrangeGroup As Integer
Public RedGroup As Integer
Public WhiteGroup As Integer
Public BlackGroup As Integer
Public BlueGroup As Integer
Public GreenGroup As Integer


Rate This is a complete code for a monopoly game that I've made myself...The game itself is very very go (1(1 Vote))
This is a complete code for a monopoly game that I've made myself...The game itself is very very go.bas

This is a complete code for a monopoly game that I've made myself...The game itself is very very go Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters