/// <summary> /// Initializes a new instance of the <see cref="LogicProvider" /> class with matrix validator and random number generator. /// </summary> /// <param name="matrixValidator">The matrix validator.</param> /// <param name="rng">The random byte generator.</param> public LogicProvider(IMatrixValidator matrixValidator, IRandomNumberGenerator rng) { this.balloonPopper = new BalloonPopper(matrixValidator); this.fieldRandomizer = new FieldGenerator(rng); }
public GameLogic(IMatrixValidator matrixValidator) { this.matrixValidator = matrixValidator; this.rng = new Random(); this.field = new byte[FIELD_ROWS + 1, FIELD_COLS + 1]; }
public GameLogic(IMatrixValidator matrixValidator) { this.matrixValidator = matrixValidator; this.rng = new Random(); this.field = new byte[FIELD_ROWS + 1, FIELD_COLS + 1]; }