add custom chess engine

This commit is contained in:
Josh-Heaps
2026-06-08 13:58:22 -06:00
parent d2ae34f530
commit c3280aa6d3
42 changed files with 3033 additions and 168 deletions
+17
View File
@@ -0,0 +1,17 @@
// Legal move generation. generate_legal is a method on Position (declared
// there); this header exists so other translation units can pull in the
// pseudo-legal generator if they ever want it.
#ifndef CHESS_MOVEGEN_H
#define CHESS_MOVEGEN_H
#include "position.h"
namespace chess {
// Generates pseudo-legal moves (ignores leaving your own king in check).
// Position::generate_legal filters these. Castling is generated fully-legal.
void generate_pseudo(const Position& pos, MoveList& list);
} // namespace chess
#endif // CHESS_MOVEGEN_H