Source code for Gomoku AI Grandmaster on the App Store. An original algorithm and implements an enhanced version of minimax algorithm & much more.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Gomoku.xcodeproj
Gomoku
README.md

README.md

Gomoku Swift

           _____      _____                     _                     _            
     /\   |_   _|    / ____|                   | |                   | |           
    /  \    | |     | |  __ _ __ __ _ _ __   __| |_ __ ___   __ _ ___| |_ ___ _ __ 
   / /\ \   | |     | | |_ | '__/ _` | '_ \ / _` | '_ ` _ \ / _` / __| __/ _ \ '__|
  / ____ \ _| |_    | |__| | | | (_| | | | | (_| | | | | | | (_| \__ \ ||  __/ |   
 /_/    \_\_____|    \_____|_|  \__,_|_| |_|\__,_|_| |_| |_|\__,_|___/\__\___|_|   

An original gobang/gomoku ai implemented using swift. Compatible with ios.

Introduction

This lightweight gomoku AI program is made based on a unique heuristic algorithm that would certainly provide the players with a new level of game-play experience. The AI is certainly not unbeatable, but it is equally good at attacking and making silly mistakes -- and this is what makes it more human like. It is capable of making outstanding moves based on an optimized minimax search algorithm that delves deep into the game tree while it is also capable of making simplistic mistakes due to imperfections built into its linear evaluation mechanism. This is precisely what makes this AI a playable opponent that is equally engaging and intriguing to battle against.

Features

  • five levels, each of which has a slightly different personality.
  • simplistic UI design
  • adjustable board dimension
  • convenient retraction of a false move made by either the AI or the player at any stage of the game (even after the game is terminated)
  • dynamic description of the AI's strategy
  • comprehensive analysis of the game status that could be made available upon the player's preference
  • human vs. human