Package cs1302.gameutil
Class TokenGrid
java.lang.Object
cs1302.gameutil.TokenGrid
The
Diagram of the
TokenGrid class includes convenience methods to display a two-dimensional array of
tokens.
cs1302.gameutil.TokenGrid class.- Related CSCI 1302 projects:
- cs1302-c4-alpha
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrintgridto standard output, including row and column indices.static voidPrintgridto standard output, including or excluding row and column indices as specified byshowIndices.
-
Method Details
-
println
Printgridto standard output, including or excluding row and column indices as specified byshowIndices.- Parameters:
grid- the 2D array of tokens to printshowIndices- whether to show row and column indices in the output- Throws:
NullPointerException- ifgridisnull
-
println
Printgridto standard output, including row and column indices.- Parameters:
grid- the 2D array of tokens to print- Throws:
NullPointerException- ifgridisnull
-