First press the green flag and choose wether you want to go first or second (it only accepts no caps) then you choose a number from 1-3 to take from the pile. whoever gets the last coin wins. (p.s. the game is rigged)
This was inspired by the mathematical game NIM I found on YouTube. All code by me. Please post your thoughts in the comments below. (I'm coming out with a new one where you can choose the number of coins)