memoryapp
Differences
This shows you the differences between two versions of the page.
memoryapp [2022/05/13 12:45] – created frchris | memoryapp [2022/05/13 12:52] (current) – frchris | ||
---|---|---|---|
Line 63: | Line 63: | ||
g.setColor(Color.BLACK); | g.setColor(Color.BLACK); | ||
g.setFont(bigFont); | g.setFont(bigFont); | ||
+ | g.drawString(userInput, | ||
g.drawString(message, | g.drawString(message, | ||
g.fillRect(x, | g.fillRect(x, | ||
Line 80: | Line 81: | ||
if(userInput.length() < sequence.length()) | if(userInput.length() < sequence.length()) | ||
{ | { | ||
- | message = "keep going"; | + | message = userInput + "...keep going"; |
} else if (userInput.equals(sequence)) {// right | } else if (userInput.equals(sequence)) {// right | ||
message=" | message=" | ||
Line 93: | Line 94: | ||
userInput=""; | userInput=""; | ||
sequence = "" | sequence = "" | ||
- | message = " | + | message = "No,the new Sequence starts with "+ch; |
flashTimer.restart(); | flashTimer.restart(); | ||
} | } |
memoryapp.txt · Last modified: 2022/05/13 12:52 by frchris