[ICM] OMOK(Gomoku) Game (Five in a Row) with DOM

I tried to make some DOM elements with P5.js, I made a bunch of buttons and pressed randomly and then I got this idea of OMOK game (GOMOKU game). Normally it is similar with ‘Go’ game, but much easier. It just fights 2 players with white and black stones to make five stones in a row.

%e1%84%89%e1%85%b3%e1%84%8f%e1%85%b3%e1%84%85%e1%85%b5%e1%86%ab%e1%84%89%e1%85%a3%e1%86%ba-2016-10-20-2-01-36-pm

%e1%84%89%e1%85%b3%e1%84%8f%e1%85%b3%e1%84%85%e1%85%b5%e1%86%ab%e1%84%89%e1%85%a3%e1%86%ba-2016-10-20-2-06-45-pm

Whenever I used ‘For’ loop function, P5 web editor warned me the infinite loop. I am really not sure where it is…

Leave a Reply

Your email address will not be published. Required fields are marked *