inventoryColumn

fun inventoryColumn(index: Int): Int

Gives the row of a given index. Does not throw an exception if index is out of range.

Return

the column position for the index (0-4)

Parameters

index

ranges from 0 - (INVENTORY_SIZE-1)