getComponentsShapeString

fun getComponentsShapeString(list: Collection<CoordinateComponent>, existsSlotChar: Char = '#', notExistsSlotChar: Char = '_'): String

※ This is a high cost function.

val list = CoordinateComponent.squareFill(3)
println(Converter.getComponentsShapeString(list))
// -> OUTPUT
// ###
// ###
// ###
val list = CoordinateComponent.square(3)
println(Converter.getComponentsShapeString(list))
// -> OUTPUT
// ###
// #_#
// ###

Return

String Shape

Since

5.0.16

Parameters

list

List of coordinates

existsSlotChar

This is a char what is used on coordinate exists. Default = #.

notExistsSlotChar

This is a char what is used on coordinate NOT exists. Default = _.