Problem with pointer to multidimensional array on heap.

Started by
11 comments, last by TobiasS 22 years, 2 months ago
Yeah, I know I shouldn''t use int*, only did so for the extra practice.
The problem with a 3x3 tic-tac-toe board is that the player who start always wins.

Thanks for helping me with the tags.
Advertisement
I don''t understand why you would want to create
a dynamic array to do tic-tac-toe.

I ''ve written it before and I use

BYTE board[3][3];

or

BYTE board[9];

and they work fine for me.

Q:"Why it doesn''''t work?"
A:"There is a mistake."

Q:"Who made that silly mistake?"
A:"The one who write it."
Q:"Why it doesn''t work?"A:"There is a mistake."Q:"Who made that silly mistake?"A:"The one who write it."
Well, I Guess my tic-tac-toe board needs to be dynamic eh.. Anyway, I got it all figured out now.

This topic is closed to new replies.

Advertisement