Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace Dominoes
- {
- public class Domino
- {
- public int FirstDigit;
- public int SecondDigit;
- }
- static class GameMatch
- {
- static Player[] players;
- }
- class GameRules
- {
- static string Rules = "";
- }
- public class BoxOfDominos
- {
- public Domino[] Deck;
- public int CountDominos => Deck.Length;
- }
- class Player
- {
- public string Name;
- public BoxOfDominos Deck;
- public Domino Move(int dominoNumber) => Deck.Deck[dominoNumber];
- }
- class Bazaar
- {
- public BoxOfDominos Heap;
- public int CountDominos => Heap.CountDominos;
- public Domino GetRandomDomino()
- {
- int randomNumber = CountDominos - 1;
- return Heap.Deck[randomNumber];
- }
- }
- class Table
- {
- public Bazaar Basaar;
- public BoxOfDominos Moves;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement