Puzzle code for demo, etc

This commit is contained in:
Mathew 2015-11-27 02:19:31 -05:00 committed by Mathew Velasquez
parent 917d320342
commit 0836769fca
4 changed files with 34 additions and 7 deletions

View file

@ -1,7 +1,10 @@
module Item
COMBINATIONS = {
[3, 4] => 5,
[25, 26] => 30,
[3, 4] => 5, # alcohol + dry branch => wet branch
[25, 26] => 30, # feather + ink bottle => pen
[32, 36] => 33, # button + magnets => magnetized button
[37, 38] => 32, # tin + scissors => button
[36, 37] => 100, # tin + magnets => can't combine
}
def self.combine(item_a, item_b)