https://github.com/stefanerrorerko/netlab3
Implementation of Singleton pattern in C# for study project
https://github.com/stefanerrorerko/netlab3
csharp patterns study-project
Last synced: 9 months ago
JSON representation
Implementation of Singleton pattern in C# for study project
- Host: GitHub
- URL: https://github.com/stefanerrorerko/netlab3
- Owner: StefanErrorerko
- Created: 2022-06-26T12:48:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T13:18:49.000Z (over 1 year ago)
- Last Synced: 2025-08-29T03:02:41.594Z (11 months ago)
- Topics: csharp, patterns, study-project
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NETLab3
## Lab3 | Design Patterns | Singleton
Muzyka Stefan
IS-02
11 variant
## Task
Make console application "Game Manager." The game consists of a game space and a list of game chips. Ensure the ability to create only one instance of the manager (Singleton pattern).
## Explanation
The game board is described by the Gameboard class. It has a Size field – this is the number of spaces on the game board.
A game chip is described by an abstract class Chip. Each chip has a Value property that defines its weight in the game.
The board and the chips are created by the game manager, as their owner. Each game may differ in the number of spaces on the board and the number of chips, making the "composition" relationship obvious.
The user of the application must have the ability to input, through the console, the number of spaces on the board (its size) and the number of chips of each type.
## Class diagram
