//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract RockPaperScissors { enum RPS { Rock, Paper, Scissors } //mapping (address => RPS) choices; RPS[] choices = new RPS[](2); address[] addresses = new address[](2); function setChoice(address player) public { choices.push(RPS.Scissors); addresses.push(player); } // test function getChoices() public view returns (RPS) { return RPS.Scissors; } }
0.4.18