about | help | code help+videos | done | prefs |
logic_takeAnotherTurn
You are playing Monopoly the board game! The rules state that you may take another turn if you roll doubles. Return true if you should take another turn based on the two incoming integers (rolls). Return false if you should not take another turn. logic_takeAnotherTurn(1, 1) → true logic_takeAnotherTurn(2, 5) → false logic_takeAnotherTurn(4, 4) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy