wordel
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wordel [2023/10/31 00:41] – frchris | wordel [2023/10/31 00:49] (current) – frchris | ||
---|---|---|---|
Line 41: | Line 41: | ||
String answerLetter = answer.substring(i, | String answerLetter = answer.substring(i, | ||
String guessLetter = guess.substring(i, | String guessLetter = guess.substring(i, | ||
- | if(answerLetter.equals(guessLetter)) | ||
- | clue += answerLetter; | ||
- | else if (answer.indexOf(guessLetter) > -1) | ||
- | clue += " | ||
- | else | ||
- | clue += " | ||
+ | /// YOUR CODE HERE | ||
} | } | ||
Line 55: | Line 50: | ||
public Color getLetterColor(int i, String guess) { | public Color getLetterColor(int i, String guess) { | ||
Color color = Color.BLACK; | Color color = Color.BLACK; | ||
- | String answerLetter = answer.substring(i, | + | String answerLetter = answer.substring(i, |
String guessLetter = guess.substring(i, | String guessLetter = guess.substring(i, | ||
if(answerLetter.equals(guessLetter)) | if(answerLetter.equals(guessLetter)) | ||
Line 72: | Line 67: | ||
</ | </ | ||
+ | |||
+ | === WordelColorTest === | ||
+ | {{ :: | ||
=== WordelGame.java === | === WordelGame.java === | ||
+ | |||
+ | {{ :: |
wordel.1698727270.txt.gz · Last modified: 2023/10/31 00:41 by frchris