Hi all,

I've written a version of the game called Gomoku.

Everything works as it should. Now I have to do the following:

I must 'calculate' the number of possible moves from a random given position.

So let's say that we have a 5 by 5 board. How many possible moves are there?

(To win you must have 5 times the colour black or white in a row, column or diagonal).

I think that it resembles the MiniMax (?) algortihm used in Tic Tac Toe.

The problem now is that I just don't know how to do it...

Could someone help me, please?

Kind regards,

NSA

I've written a version of the game called Gomoku.

Everything works as it should. Now I have to do the following:

I must 'calculate' the number of possible moves from a random given position.

So let's say that we have a 5 by 5 board. How many possible moves are there?

(To win you must have 5 times the colour black or white in a row, column or diagonal).

I think that it resembles the MiniMax (?) algortihm used in Tic Tac Toe.

The problem now is that I just don't know how to do it...

Could someone help me, please?

Kind regards,

NSA

Topic archived. No new replies allowed.