ibnzUK / goban_algorithm

node.js algrithm for go game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goban_algorithm

node.js algrithm for go game based on technical test requirements

Running instructions

  • 1: Install Node.js
  • 2: navigate to code directory
  • 3: run: node go.js

SETUP board and place rocks

image

Get status of expected rock

image

Expected output

image

To Do

  • 1: draw shape when go rock is placed, by creating shape array of coordinate objects if surrounding has the same colour as placed rock
  • 2: check each shape array element surroundings if one of the surroundings is 'EMPTY' return (not taken) else continue checking

About

node.js algrithm for go game


Languages

Language:JavaScript 100.0%