Make engine dep-free/standalone and add Wasm target

This commit is contained in:
2025-12-19 04:01:32 +01:00
parent 509f58a379
commit 02b1ca4cfe
10 changed files with 1264 additions and 392 deletions

35
chess.html Normal file
View File

@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Wasm Loader</title>
<script type="module" src="./chess.js" defer></script>
<style>
#board {
display: grid;
grid-template-columns: repeat(8, 60px);
grid-template-rows: repeat(8, 60px);
width: 480px;
}
.square {
width: 60px;
height: 60px;
font-size: 57px;
}
.square.light {
background: #f0d9b5;
}
.square.dark {
background: #b58863;
}
</style>
</head>
<body>
<div id="board"></div>
</body>
</html>