Skip to content

Commit e7b4a18

Browse files
authored
Werewolf to static visualizer (#543)
* [Werewolf] Add static assets for visualizer * [Werewolf] Move new werewolf visualizer to use static framework * [Werewolf] - update legacy-adapter and player to work with Werewolf I'm not crazy about the way we are injecting the unstable_playerControls (previously __mainContext) - it would be nice to learn what exactly werewolf needs and see if we could work around it with transformers or more targeted exposed actions Also updated the way that our dependencies use @kaggle-environments/core to make the development experience a bit more streamlined
1 parent daca6d2 commit e7b4a18

36 files changed

+8284
-68
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Werewolf Visualizer</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@kaggle-environments/werewolf-visualizer",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"dev-with-replay": "cross-env VITE_REPLAY_FILE=./replays/test-replay.json vite",
9+
"build": "tsc && vite build",
10+
"preview": "vite preview"
11+
},
12+
"devDependencies": {
13+
"cross-env": "^10.1.0",
14+
"typescript": "^5.0.0",
15+
"vite": "^5.0.0"
16+
},
17+
"dependencies": {
18+
"@kaggle-environments/core": "workspace:*",
19+
"htm": "^3.1.1",
20+
"preact": "^10.27.2"
21+
}
22+
}

kaggle_environments/envs/werewolf/visualizer/default/replays/test-replay.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)