Kaszanas / Kaszanas/SnapSC2

Verify Player Score Observation

Open
#26 1 comment 0 reactions 1 assignee Claimed by @Kaszanas View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

It is said that the last observation informs about the player result/score/final stuff.

But when running a game one of the first things that is logged is:

```
[2025-12-27 17:36:11,683][39184/38868][INFO][Thread-7 (worker)][replay_observation_stream.py:183] - map_name: "[ESL] Cosmic Sapphire"
player_info {
player_info {
player_id: 1
type: Participant
race_requested: Zerg
race_actual: Zerg
player_name: "LiquidElazer"
}
player_result {
player_id: 1
result: Defeat
}
player_apm: 557
}
player_info {
player_info {
player_id: 2
type: Participant
race_requested: Protoss
race_actual: Protoss
player_name: "<\316\261X>Zoun"
}
player_result {
player_id: 2
result: Victory
}
player_apm: 389
}
game_duration_loops: 13177
game_duration_seconds: 588.3
game_version: "5.0.10.88500"
data_build: 88500
base_build: 88500
data_version: "F38043A301B034A78AD13F558257DCF8"
```

It seems that it might be unecessary to go to the end of the game just to get the information about who won.

PySC2 informs that:

```
# Always use last observation, it contains the player result.
player_obs_queue.append(_unconverted_observation(
observation=current_observation,
actions=current_observation[0].actions))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.