LilasCorner / jlootbox

Other
1 stars 0 forks source link

Consider switching the history of Lootboxes from Stack<Integer> to Deque<Lootbox> #3

Open JohnTMurphy-NIU opened 2 years ago

JohnTMurphy-NIU commented 2 years ago

A Deque is a little bit stronger than a Stack, and you can pop things off the bottom to reduce the size of the list if you know you only need the last N elements added. Storing the Lootbox should be easier if the Lootbox is just a couple of values (now that you've removed the Random Number Generator, which is a heavier object).