Coder Social home page Coder Social logo

cdc-ai-agent's Introduction

Chinese Dark Chess AI

This is the final project for the "NTU, Theory of Computer Games (Fall 2021)" course. This repository contains the implementation of an AI Agent for playing Chinese Dark Chess, leveraging a variety of AI strategies and optimizations. The AI includes algorithms like Nega Scout and features such as time control, transposition tables, dynamic search extensions, and more. It's designed to enhance gameplay, offering both competitive strategies and deep insights into the game's dynamics.

Features

  • Nega Scout Algorithm: Implemented using pseudocode from course slides, includes optimizations like star-series functions for flipping pieces and window testing for enhanced move decisions.

  • Time Control: Utilizes an iterative deepening framework with a function to check for time limits, ensuring the AI performs optimally under time constraints.

  • Transposition Table: Uses Zobrist’s hash for efficient move and state management, improving calculation speed and accuracy.

  • Dynamic Search Extension: Identifies and extends search in potentially critical game situations, enhancing the AI’s ability to handle complex scenarios.

  • Iterative Deepening Aspiration Search (IDAS): Employs a two-layer initial search to set boundaries for further deepening, optimizing performance across different game phases.

  • Evaluation Functions: Incorporates multiple strategies for evaluating game states, including static piece scores and distance-based scoring.

  • Advanced Heuristics: Implements refutation tables, killer heuristic, and history heuristic to improve move ordering and cut effectiveness.

cdc-ai-agent's People

Contributors

liaoelton avatar

Watchers

 avatar

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.