Giter VIP home page Giter VIP logo

gobang's Introduction

gobang

一个五子棋AI,使用原生JavaScript开发

试玩:https://shervinchen.github.io/gobang/

介绍

  • 界面使用Canvas绘制,可以根据各种设备的屏幕尺寸动态调整棋盘大小
  • AI核心算法基于Alpha-Beta的搜索树**,实现了PVS搜索,搜索深度最高可达6层,棋力尚可
  • 实现了棋型判断、评估函数等核心逻辑,以及启发式搜索、迭代加深、置换表等优化算法

启动

npm run start

open localhost:8080 and enjoy it !

打包

npm run build

TODO

  • 添加最后落子提示
  • loading动画
  • 走棋提示
  • 悔棋
  • 算法优化
  • 使用Web Worker优化性能

gobang's People

Contributors

shervinchen avatar

Stargazers

 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.