Code Monkey home page Code Monkey logo

juliette's Introduction

juliette's People

Contributors

alantao912 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ongamse

juliette's Issues

Create "MoveList" object to replace std::vector<uint32_t>

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.

Convert minimax to negamax

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.

Game progression

Implement determination of game progression based on material remaining.

Implement custom data structure for move lines

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).

Three-Fold Repetition Verification

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.

macOS build

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 custom data structure for movelist

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.