aspose file tools
The moose likes Java in General and the fly likes initialize array bidimensional how 0 in construct Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "initialize array bidimensional how 0 in construct" Watch "initialize array bidimensional how 0 in construct" New topic
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: initialize array bidimensional how 0 in construct
 
Similar Threads
Game Tutorials -->> TicTacToe
TicTacToe Game
TicTacToe Game..
TicTacToe game
How to initialize array bidimensional ?