
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ban-chess-engine
Advanced tools
An AI engine for the Ban Chess variant, built on top of the ban-chess.ts library.
This engine uses traditional chess AI techniques (minimax with alpha-beta pruning) adapted for Ban Chess. The key insight is that the ban-chess.ts library's ply-based system allows us to treat bans and moves uniformly - each ply is simply an action in the game tree.
cd ban-chess-engine
npm install
npm run build
npm run play
import { BanChess } from 'ban-chess.ts';
import { BanChessEngine } from 'ban-chess-engine';
const game = new BanChess();
const engine = new BanChessEngine({
maxDepth: 6, // Search depth in plies
timeLimit: 5000 // Time limit in milliseconds
});
// Get best action for current position
const result = engine.findBestAction(game);
if (result.action) {
game.play(result.action);
console.log(`Engine played with score: ${result.score}`);
}
The engine leverages the ply-based system from ban-chess.ts:
This means we can use standard minimax without special handling for the ban/move alternation. Each ply is treated as a single node in the search tree.
The position evaluation considers:
The engine searches approximately 6-8 plies deep in typical middlegame positions within a 3-second time limit. The actual depth depends on:
FAQs
AI engine for Ban Chess variant using minimax algorithm
We found that ban-chess-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.