Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Feb 20, 2023
1 parent 50e5553 commit ce4a35f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lux-eye-s2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lux-ai/lux-eye-s2",
"version": "2.1.8",
"version": "2.1.9",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion lux-eye-s2/src/episode/luxai-s2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function parseLuxAIS2Episode(data: any, extra: Partial<EpisodeMetadata> =
throw new Error('Only Lux AI v1.1.0+ episodes are supported');
}

let metadata: EpisodeMetadata = { teamNames: ['Player A', 'Player B'], seed: -1 };
let metadata: EpisodeMetadata = { teamNames: ['Player A', 'Player B'], seed: undefined };
metadata = {
...metadata,
...extra,
Expand Down
2 changes: 1 addition & 1 deletion lux-eye-s2/src/episode/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ export interface Episode {
}
export interface EpisodeMetadata {
teamNames: [string, string];
seed: number;
seed?: number;
}
2 changes: 1 addition & 1 deletion lux-eye-s2/src/pages/visualizer/TurnControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function TurnControl({ showHotkeysButton, showOpenButton }: TurnControlPr

<Group position="apart">
<Text>{isDay ? 'Day' : 'Night'}</Text>
<Text>Seed: {episode.metadata.seed}</Text>
{episode.metadata.seed && <Text>Seed: {episode.metadata.seed}</Text>}
{selectedTile !== null && (
<Text>
Tile: ({selectedTile.x}, {selectedTile.y})
Expand Down

0 comments on commit ce4a35f

Please sign in to comment.