a-mango / chex Goto Github PK
View Code? Open in Web Editor NEWYet another chess engine
License: MIT License
Yet another chess engine
License: MIT License
CHEX CHESS MANUAL 1 TODO [ ] Add command line argument support [ ] Add error handling [ ] Extend debug logging functionalities [ ] Fix board representation [x] Add a board printer [ ] Fix move parser [ ] Add a move generator [ ] Add a move validator [ ] Add a move maker [ ] Implement search [ ] Implement eval [ ] Add REPL [ ] Implement UCI 2 DESIGN CONSIDERATIONS 2.1 BOARD REPRESENTATION This program uses bitboards to represent the board. A bitboard is a 64-bit integer, with each bit representing a square on the board. The least significant bit represents a8, the next bit represents b8, and so on. The most significant bit represents h1. The bitboard for a square is TODO. Diagram : 8 7 6 5 4 3 2 1 +---+---+---+---+---+---+---+---+ 8 | 56| 57| 58| 59| 60| 61| 62| 63| +---+---+---+---+---+---+---+---+ 7 | 48| 49| 50| 51| 52| 53| 54| 55| +---+---+---+---+---+---+---+---+ 6 | 40| 41| 42| 43| 44| 45| 46| 47| +---+---+---+---+---+---+---+---+ 5 | 32| 33| 34| 35| 36| 37| 38| 39| +---+---+---+---+---+---+---+---+ 4 | 24| 25| 26| 27| 28| 29| 30| 31| +---+---+---+---+---+---+---+---+ 3 | 16| 17| 18| 19| 20| 21| 22| 23| +---+---+---+---+---+---+---+---+ 2 | 8| 9| 10| 11| 12| 13| 14| 15| +---+---+---+---+---+---+---+---+ 1 | 0| 1| 2| 3| 4| 5| 6| 7| Compass rose: noWe nort noEa +7 +8 +9 \ | / west -1 <- 0 -> +1 east / | \ -9 -8 -7 soWe sout soEa See also: - https://www.chessprogramming.org/Square_Mapping_Considerations 2.2 BITBOARD OPERATIONS 2.2 MOVE REPRESENTATION 2.3 MOVE GENERATION 3 USAGE 4 TESTING 5 REFERENCES
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.