Bruno Raoult 87e7695873 new pos/bb funcs, legal(), better castling gen, etc. [see commit details]
- new sq_pinners
- new pseudo_is_legal() (unfinished)
- improve castling pseudo move gen

- more position and lower level bitboard helper funcs:
  - pos_{_occ,between_occ,between_count,pinners}
  - bb_{rank,file,rel_rank,_sq_aligned,_sq_between)
- rename some bitboard globals
- replace bb ranks/files enums with defines (issue with clang)
  -> Need to find a way to use enum safely
- tests:
  - add common-test.h
  - new attack-test.c
2024-03-10 10:58:14 +01:00
2023-07-14 08:35:47 +02:00
2023-07-09 16:04:20 +02:00
2023-12-29 16:35:19 +01:00
2021-10-27 16:09:56 +02:00
2024-01-07 14:15:32 +01:00
2024-02-08 09:52:35 +01:00
2024-02-10 09:16:59 +01:00
2023-07-14 22:15:33 +02:00

This is not a working chess program !!

I am only experimenting some chess programming concepts.

License

SPDX-License-Identifier: GPL-3.0-or-later <https://spdx.org/licenses/GPL-3.0-or-later.html>~

This work is Copyright (C) 2021-2024 Bruno Raoult ("br"), and licensed under the GNU General Public License v3.0 or later.

Some rights reserved. See COPYING.

Installation (don't do it until version 0.9)

dependencire

  • GCC 10 or newer
  • libreadline

clone repository

user…*

$ git clone https://github.com/braoult/brchess.git
or
$ git clone https://git.raoult.com/bruno/brchess.git

OR …developer

$ git clone git@git.raoult.com:bruno/brchess.git
$ cd brchess
$ git remote add github git@github.com:braoult/brchess.git
$ git fetch --all

add "brlib" submodule

$ cd brchess
$ git submodule init
$ git submodule update
Description
Maybe a chess program someday...
Readme 3 MiB
Languages
C 94.8%
Makefile 3.9%
Shell 1.3%