Skip to content

Small, perfomant, memory and panic safe chess engine built in Zig programming language.

License

Notifications You must be signed in to change notification settings

SacrilegeWasTaken/tiny_chess_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig chess game engine.

This repository provides you simple and fast API for chess engine. API includes Engine struct and some member functions.

// allocate the Engine on the heap
pub fn init(allocator: std.mem.Allocator) !*Self;
// free the memory
pub fn deinit(self: *Self, allocator: std.mem.Allocator) void;
// sets the timer for the game
pub fn setTimer(self: *Self, secs: u64) !void;
// starts the game
pub fn startGame(self: *Self) !void;
// input move (no need in CLI mode)
pub fn inputMove(self: *Self, mov: []const u8) !void;

Main features are:

  • Simplicity
  • Small binary
  • Fast perfomance
  • Togglable CLI inteface for the game
  • Memory safety
  • Panic safety

Current progress

[############-----------------------------]

About

Small, perfomant, memory and panic safe chess engine built in Zig programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages