I want to make a simple chess board in java. The input is integer n and the output must be n×n Chessboard. *
represents black field and
(space) represents white field. For Example, for n=5 the Chess board would be like this:
* * *
* *
* * *
* *
* * *
so far i already wrote the code like this but it has no white field just black field (*
).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…