| C# OOP | MatveevichOne
2 subscribers
1 photo
2 links
15 | C# | .NET | Minsk | Open to freelance
@MatveevichOne
Download Telegram
MonopolyGame is a software implementation of the classic Monopoly board game built on Windows Forms (C# .NET Framework 4.7.2). The game supports 2 to 4 players with full rule set including property purchasing, rent payment, taxes, Chance/Community Chest cards, and jail mechanics.
Main Components
1. GameBoard
Manages all game objects
Contains a list of all board cells (40 positions)
Initializes the classic Monopoly board:
Streets of different color groups (from Brown to Blue)
Railroads (4 pieces)
Utilities (2 pieces)
Tax cells
Chance and Community Chest cells
GO, Jail, Free Parking, Go To Jail
2. Player
Stores information about each player:
Name, color, money balance (starting at $1500)
Current position on the board
List of owned properties
Jail status and turns count
3. Property
Board cell model supporting various types:
Street - with house/hotel construction support
Railroad
Utility
Tax
Chance / Community Chest (special cards)
Supports mortgage and building count
4. Form1 (Graphical Interface)
Visual rendering of the 11×11 board layout
Information panel displaying player data and properties
Control buttons: "Roll Dice", "End Turn", "Buy"
Game log for event tracking
Player positions shown as colored circles
Game Mechanics
Dice Roll: two six-sided dice, doubles grant an extra turn
Movement: players move around the board, passing GO earns $200
Purchase: unowned street can be bought at the listed price
Rent: landing on another player's property requires rent payment (with building and monopoly bonuses)
Construction: house/hotel support (logic exists, UI not fully implemented)
Jail: automatic release after 3 turns for $50 fine
Cards: random events with monetary penalties or bonuses
Bankruptcy: negative balance removes player from the game
Technical Details
Built on Windows Forms with event-driven model
Board and player rendering using GDI+ graphics primitives
Full OOP implementation in C#
Uses standard Random number generator

https://github.com/MatveevichOne/MonopolyGame.git
🔥1
I helped fix errors with parsing a document describing the C-sharp 15 (.NET 11) function with break and continue labels. You can learn more about it on GitHub
https://github.com/dotnet/docs/pull/54999#issue-4952083509
🍾1