Code Monkey home page Code Monkey logo

gomoku's Introduction

Gomoku (Five in a Row)

A Gomoku AI that can think 9 steps ahead. (An average human can think about 3 steps ahead.)

If you don't have Processing already installed, go to https://processing.org/download/ and download it.

Click on any .pde file and the entire project will load. Hit the play button to challenge the AI. To undo a step, press g.

Customization

You can change who plays first and the AI strength by going into gomoku3_4/gomoku3_4.pde and changing the following line.

game = new Game(9, 2);

The first parameter indicates the AI's strength, I suggest putting in 9 or 7.

The second parameter indicates who is playing whom. 1 is AI vs Player, 2 is Player vs AI, 3 is AI vs AI, 4 is Player vs Player.

On my MacBook Pro, The AI takes around 1 second to figure out each move, though it might take longer on the first two moves. If it takes too long on your computer, try setting the AI strength to 7 instead of 9.

Competition

Our AI model can beat most if not all existing AI models, even when our AI goes second (aka when going white).

yyjhao/HTML5-Gomoku with over 60 stars. We win as white.

Kesoyuh/Gomoku with over 150 stars. We win as white.

gobang with over 1.2k stars. We win as white.

gomoku's People

Contributors

rolandgao avatar

Watchers

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