Skip to content

Commit

Permalink
Use node 20 (#97)
Browse files Browse the repository at this point in the history
* Feature/save game (#65)

* feat: add saving game

* refactor

* fix

* fix: some bug

* feat: better ai

* fix: tests en passant

* fix: isValidMove returns true for en passant capture

* fix: isValidMove returns true for en passant capture

* fix: add true

* Create CODE_OF_CONDUCT.md

Signed-off-by: Antoine Greuzard <[email protected]>

* Update issue templates

* refactor ai

* refactor board

* refactor piece

* refactor pieces

* refactor utils

* refactor canvas

* refactor timer

* fix: drag impossible on ai pieces

* fix: remove save game

---------

Signed-off-by: Antoine Greuzard <[email protected]>
Co-authored-by: Antoine GREUZARD <[email protected]>

* fix: remove saveGameToFile

* Update pull_request_template.md

Signed-off-by: Antoine Greuzard <[email protected]>

* fix: remove saveGameToFile

* refactor: add ai folder

* Create dependabot.yml

Signed-off-by: Antoine Greuzard <[email protected]>

* feat: add some jobs

* fix: add token

* fix: rename token to github_token

* feat: add letters and x,y on canvas

* remove dependabot

* feat: add @size-limit

* remove size-limit

* remove size-limit

* remove size-limit job

* feat: better sort

* feat: better quiescence

* feat: better board evaluation

* feat: better opening move

* feat: add tests

* feat: add tests

* feat: add tests

* feat: add tests

* feat: add tests

* feat: add tests

* refactor

* refactor

* refactor: console.log deleted

* refactor

* restore handlePromotion

* fix: add static

* fix: bug with build

* refactor

* Feature/ai json (#93)

* feat: add games.json

* refactor

* refactor

* fix: getAnalyzedMove

* fix: rework endgame and openinggame

* fxi: rework getAnalyzedMove

* fix: working positionKey with FEN string

* feat: better minimax

* feat: add Multi-Cut Pruning

* feat: add determineGamePhase

* feat: better killermoves

* feat: better evaluator

* feat: increase to 5

* feat: use ProbCut

* feat: use Aspiration Windows

* feat: add Contextual Move Ordering

* feat: increase maxTime

* fix maxtime

* feat: increase maxtime

* refactor

* feat: use a random

* feat: diffrent maxtime at each turn

* feat: better usage of maxTime

* feat: use node 20

---------

Signed-off-by: Antoine Greuzard <[email protected]>
Co-authored-by: Antoine GREUZARD <[email protected]>
  • Loading branch information
antoinegreuzard and Antoine GREUZARD authored Nov 3, 2024
1 parent b8e5c3c commit ceee892
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ movements, and rules enforcement.

### Prerequisites

- [Node.js](https://nodejs.org/en/) (version 16 or higher)
- [Node.js](https://nodejs.org/en/) (version 20)
- npm (comes with Node.js)

### Installation
Expand Down
14 changes: 9 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"engines": {
"node": "20.x"
},
"size-limit": [
{
"path": "dist/**/*.js",
Expand All @@ -18,7 +21,9 @@
"prettier-check": "prettier --check 'src/**/*.{js,ts,html,css}'",
"lint": "eslint 'src/**/*.{js,ts}' --config ./eslint.config.js",
"test-server": "npm run start & sleep 5 && pkill -f vite",
"test": "jest"
"test": "jest",
"check-node-version": "node -e \"if (parseInt(process.versions.node.split('.')[0]) !== 20) throw new Error('This project requires Node.js v20. Please install it.');\"",
"preinstall": "npm run check-node-version"
},
"devDependencies": {
"@babel/core": "^7.26.0",
Expand All @@ -27,7 +32,7 @@
"@jest/globals": "^29.7.0",
"@rollup/plugin-json": "^6.1.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.8.1",
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"babel-jest": "^29.7.0",
Expand Down

0 comments on commit ceee892

Please sign in to comment.