Skip to content

ibnzUK/goban_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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