ActionCase constructor

const ActionCase({
  1. required String name,
  2. required Map<String, dynamic> config,
  3. required Map<String, dynamic> state,
  4. required Map<String, dynamic> obs,
  5. required Map<String, dynamic> action,
  6. required List<int> pending,
  7. required int playerIndex,
  8. required bool expectedValid,
  9. required Map<String, dynamic>? expectedObservation,
  10. ExpectedEnvelope expected = const ExpectedEnvelope(),
  11. int participantCount = 2,
  12. String rngSeed = _defaultRngSeed,
})

Implementation

const ActionCase({
  required super.name,
  required this.config,
  required this.state,
  required this.obs,
  required this.action,
  required this.pending,
  required this.playerIndex,
  required this.expectedValid,
  required this.expectedObservation,
  // Defaulted exactly as the fixture format defaults them: a case that
  // records no envelope asserts nothing about one, and one that names
  // neither seat count nor stream means two seats and the shared seed.
  this.expected = const ExpectedEnvelope(),
  this.participantCount = 2,
  this.rngSeed = _defaultRngSeed,
});