id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com logic > logic_takeAnotherTurn
prev  |  next  |  chance

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)

public boolean logic_takeAnotherTurn(int rollOne, int rollTwo) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy