
I an trying to replicate a table that uses two variables to produce a third. I think I have the constant figured out but I am stuck.
// ======= CONSTANT OCCUPANT HIT TABLE ======= const occupantHitTable = [ {o:1 [{10, 9, 8, 7, 6, 5, 4, 3, 3, 3, 3}]}, {o:2 [{12, 10, 9, 8, 7, 6, 5, 4, 3, 3, 3}]}, {o:3 [{14, 12, 10, 9, 8, 7, 6, 5, 4, 3, 3}]}, {o:6 [{16, 14, 12, 10, 9, 8, 7, 6, 5, 4, 3}]}, {o:11 [{17, 16, 14, 12, 10, 9, 8, 7, 6, 5, 4}]}, {o:21 [{17, 17, 16, 14, 12, 10, 9, 8, 7, 6, 5}]}, {o:51 [{17, 17, 17, 16, 14, 12, 10, 9, 8, 7, 6}]}, {o:101 [{17, 17, 17, 17, 16, 14, 12, 10, 9, 8, 7}]}, {o:201 [{17, 17, 17, 17, 17, 16, 14, 12, 10, 9, 8}]} ];
The actual table
Any help would be greatly appreciated.