Skip to content

Commit

Permalink
feat: add jschess as an example how to ai
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed Aug 8, 2023
1 parent 3cf3b37 commit 229d701
Show file tree
Hide file tree
Showing 37 changed files with 8,653 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/jschess/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="yes" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"
/>
<meta name="screen-orientation" content="landscape" />

<meta name="format-detection" content="telephone=no" />
<link rel="manifest" href="manifest.json" />
<title>JSChess</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/index.ts"></script>

<script src="./jquery-1.10.1.min.js"></script>
<!--<script src="js/all.js"></script>-->
<!--<script src="js/all_comp.js"></script>-->
<script src="./jschess/defs.js"></script>
<script src="./jschess/io.js"></script>
<script src="./jschess/board.js"></script>
<script src="./jschess/movegen.js"></script>
<script src="./jschess/makemove.js"></script>
<script src="./jschess/perft.js"></script>
<script src="./jschess/evaluate.js"></script>
<script src="./jschess/pvtable.js"></script>
<script src="./jschess/search.js"></script>
<script src="./jschess/protocol.js"></script>
<script src="./jschess/gui.js"></script>
<script src="./jschess/main.js"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions packages/jschess/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@tt5/jschess",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.2",
"@types/debug": "4.1.7",
"@types/uuid": "^9.0.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"sass": "^1.57.1",
"svelte": "^3.58.0",
"svelte-check": "^3.0.2",
"svelte-preprocess": "^5.0.0",
"tailwindcss": "^3.2.4",
"vite": "^4.0.4"
},
"dependencies": {
"@tt5/prototypes": "workspace:*",
"@tt5/types": "workspace:*",
"debug": "^4.3.4",
"uuid": "^9.0.0"
}
}
6 changes: 6 additions & 0 deletions packages/jschess/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added packages/jschess/public/bB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/jschess/public/bK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/jschess/public/bN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/jschess/public/bP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/jschess/public/bQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/jschess/public/bR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 229d701

Please sign in to comment.