It should be coded JAVA and please write the code with the
explanation in (//) green in the codehs. The rule/assignment is in
the picture.
Output Docs Assignment Grade More 1 point Status: Not Submitted la In this lab you are going to create a word game. This game could be like wordle or hangman. The following are requirements for the game: -The game must have two java classes a game class and a tester class -The game must have a limited number of guesses -The game must create objects that store the word-the word should randomly be chosen from a string array. -The game class should have at least one getter method. -The game should give feedback to the user so that they know how they are doing in the game. For example: a + could return a correct letter in the wrong place whereas the letter itself could be feedback that the letter is in the correct place. -The game should account for user error.
Sandbox My Section Practice + New + WordGame Submit + Continue Save Output > 1 point Status: Not SIN WordGame.java Tester.java 5. <> 1. public class WordGame { Z //create a String array of words 3 //create other needed instance variables 4 5 //create a constructor 6 7 //create a play method that does something for every round of pla 8 9 //create one or more getter methods 10 } In this lab you are wordle or hangm The following are -The game must -The game must -The game must randomly be chc -The game class - The game shou are doing in the For example: a + whereas the lett correct place. -The game shou 61 Array 6.2 6.3 6.4 6.5
Sandbox My Section Practice New + WordGame Submit + Continue Save Output WordGame.java 1 point Statu Tester.java 1. import java.util.Scanner; 2 public class Tester 3- { 4 public static void main(String[] args) 5 - { 6 Scanner input = new Scanner (System.in); 7 } 1 81 In this lab yc wordle or ha The followin - The game -The game -The game randomly be -The game -The game are doing ir For exampl whereas th correct plac -The game Array 6.4 6.5
It should be coded JAVA and please write the code with the explanation in (//) green in the codehs. The rule/assignment
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am