Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

I am making a Reversi game where 2 algorithms play against each other. So far I have a code where a player plays against an algorithm but I need...

I am making a Reversi game where 2 algorithms play against each other. So far I have a code where a player plays against an algorithm but I need there to be 2 algorithms.

In my code a board is printed out but I don't actually need that.

Example of input:

4,4

Example of output:

size = 4 (r=row, c=column)

r0c1 alg1 , r1c1

r0c0 alg2 , r1c1

r1c0 alg1 , r1c1

r2c0 alg2 , r1c0 r2c1

r3c1 alg1 , r2c2

r2c3 alg2 , r2c2

r3c2 alg1 , r2c2

r0c3 alg2 , r1c2

r1c3 alg1 , r1c2 r2c3

r0c2 alg2 , r0c1 r1c1

r3c0 alg1 , r2c1

r3c1 alg2 , r2c1

alg1 = 7

alg2 = 9

win = alg2

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question