| Author |
initialize array bidimensional how 0 in construct
|
Gustavo Siqueira
Ranch Hand
Joined: Jun 15, 2011
Posts: 94
|
|
Hi the all!
I develop one game basic. I of some tips for make.
See:
See the description of game:
Create class TicTacToe. The Class content one array bidimensional private 3 by 3 of integer. The construct must initialize the grade empty with all how 0. Let two players human.
For where whether that the prime player if move, place one on square especified and 2 no local for the which second player of move.
Someone can of one idea ?
Thanks!
|
 |
Wouter Oet
Saloon Keeper
Joined: Oct 25, 2008
Posts: 2700
|
|
That isn“t a constructor. It's just a method with the same name as the class.
|
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
|
 |
Gustavo Siqueira
Ranch Hand
Joined: Jun 15, 2011
Posts: 94
|
|
Sorry.
I forgot to get the void.
|
 |
 |
|
|
subject: initialize array bidimensional how 0 in construct
|
|
|