dont-track-me-google
Firefox and Chrome extensions to prevent Google from making links ugly.
Simple chess AI in JavaScript. Uses the chess.js and chessboard.js libraries.
A chess engine by someone who doesn't know how to play chess.
chess-ai is a simple chess AI in JavaScript.
The primary concern of chess-ai is the decision-making part of the application. All functionality outside the scope of the AI are implemented using external libraries:
The AI uses the minimax algorithm, which is optimised by alpha-beta pruning.
The evaluation function uses piece square tables adapted from Sunfish.py, and eliminates the need for nested loops by updating the sum based on each move instead of re-computing the sum of individual pieces at each leaf node.
A global sum is used to keep track of black's evaluation score after each move, which is used to display the 'advantage' bar.
Head over to https://zeyu2001.github.io/chess-ai/.
Play as white by dragging a piece to your desired location. The AI plays as black. The AI's minimax search depth (which is directly related to how well it will play) can be customised using the 'Search Depth (Black)' dropdown. Using a higher value will improve the AI's accuracy, but it will take longer to decide on the next move.
To pit the AI against itself, click the 'Start Game' button under Computer vs. Computer. You can stop the game at any time using the 'Stop and Reset' button.
Use of this project is governed by the MIT License.
more like this
Firefox and Chrome extensions to prevent Google from making links ugly.
Portable chess game in C. Commodore 64, Apple 2, Atari, Oric, Commander X16, curses terminal, etc.
search projects, people, and tags