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

 

didLose


Hangman offline
The method should return true if the user has run out of turns to guess the word. In this case, you are given the guessesLeft as a parameter, in the game you have guessesLeft as an instance variable.


didLose(0) → true
didLose(1) → false
didLose(2) → false

...Save, Compile, Run (ctrl-enter)

public boolean didLose(int guessesLeft){ }

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

Difficulty: 100

Copyright Nick Parlante 2017 - privacy