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 void
Printgrid
to standard output, including row and column indices.static void
Printgrid
to standard output, including or excluding row and column indices as specified byshowIndices
.
-
Method Details
-
println
Printgrid
to 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
- ifgrid
isnull
-
println
Printgrid
to standard output, including row and column indices.- Parameters:
grid
- the 2D array of tokens to print- Throws:
NullPointerException
- ifgrid
isnull
-