guess_my_rule
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
guess_my_rule [2022/08/03 13:01] – frchris | guess_my_rule [2022/08/11 10:00] – frchris | ||
---|---|---|---|
Line 40: | Line 40: | ||
==== Guess My String Rule ==== | ==== Guess My String Rule ==== | ||
This is best using the Eclipse IDE | This is best using the Eclipse IDE | ||
- | < | + | < |
+ | /** | ||
+ | * Make up your own rule | ||
+ | * | ||
+ | * @author Chris Thiel, OFMCap | ||
+ | * | ||
+ | */ | ||
import java.util.Scanner; | import java.util.Scanner; | ||
Line 49: | Line 55: | ||
public GuessMyStringRule() | public GuessMyStringRule() | ||
{ | { | ||
- | secretRule = "The String needed to contain a lower case s"; | + | // Change the following to make your own rule and hint: |
+ | |||
+ | | ||
hint = "Ben follows the rule, but bend does not"; | hint = "Ben follows the rule, but bend does not"; | ||
guess_my_rule.txt · Last modified: 2022/08/11 10:09 by frchris