bool terminated()

in cpp/hanabi_env.h [81:96]


  bool terminated() const final {
    if (state_ == nullptr) {
      return true;
    }

    bool term = false;
    if (maxLen_ <= 0) {
      term = state_->IsTerminal();
    } else {
      term = state_->IsTerminal() || numStep_ >= maxLen_;
    }
    if (term) {
      lastScore_ = state_->Score();
    }
    return term;
  }