alantao912 / juliette Goto Github PK
View Code? Open in Web Editor NEWComputer program that plays chess.
Computer program that plays chess.
We must know how many checks/captures there are in a move list. It may be convenient to create a "movelist" object backed by an array that also tracks additional information such as the number of checks, and the number of captures.
Replace current custom hash function with zobrist hashing and implement a transposition table.
Currently, there are two nearly identical functions to implement alpha-beta minimax. One for the minimizing side, one of the maximizing size. Use the relation: alphabeta(a,b) = -alphabeta(-b, -a) to convert to "negamax" therefore requiring less, more compact code.
Implement determination of game progression based on material remaining.
When considering different lines, worse lines are frequently swapped out for better lines. Create a data structure that is optimized to do this without dynamic memory allocation (slow) and excessive copying (also slow).
Tell the search algo to keep searching until there are no more captures or checks remaining. Then evaluate the position.
Different Positions could have duplicate hash codes. Therefore, whenever the repetition count hits three during draw verification, we must verify the move history to see if the position is actually drawn by three-fold repetition.
Hi Alan, since the readme suggests building on "Any UNIX derived OS", just wanted to point out a compilation error on macos (ventura 13.1):
src/util.h:140:16: error: definition of type 'stack_t' conflicts with typedef of the same name
typedef struct stack_t {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_sigaltstack.h:48:33: note: 'stack_t' declared here
typedef _STRUCT_SIGALTSTACK stack_t; /* [???] signal stack */
it seems some internal structure in the macos developer stack is also named stack_t
. Would you consider wrapping in a namespace or renaming to support macos compilation?
Implement a custom data structure for the move list with counters storing data for the number of checks, and captures. This data structure should be optimized for swapping elements and popping back.
Implement 3 fold repetition -> draw rule into evaluation function. Incentivize repeating moves when evaluation is unfavorable.
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.