Dont even try to copy. Copied asnwers will be reported straightaway ; Let's make a SUPER simple
Fantastic news! We've Found the answer you've been seeking!
Question:
Dont even try to copy. Copied asnwers will be reported straightaway
Transcribed Image Text:
; Let's make a SUPER simple wordle-esque game... we'll call simple wordle. ; You start the game with a blank screen, waiting for a player to type a ; valid letter (A-E, upper- or lower-case should work; cough, see problem #1); ; pressing any other key should not have any effect. ; Once a valid letter has been pressed, display that (in upper-case form) and ; wait for a key to be pressed, which could be... ; ; - backspace ("\b" in DrRacket) to go to the prior step; ; - or enter (" " in DrRacket) to see if they win ; ; (again, pressing any other key should not have any effect). ; Once enter has been pressed, the game is over. The player wins if they entered ;"C", but lose otherwise. If they win, they see a smiley face (":)") and the game ; returns a certain number of points; if they lose, they get a sad face (":(") and ; lose those points. ; To begin, here is a data definition you'll use for this problem... ; A SimpleWordle is one of: ; ; "A" ; - "B" ; - "C" ; ; - "E" ; ; ":(" ; Interpretation: status of a simple word le game, where... ; - nothing has been entered yet (""); ; - a valid character has been entered ("A"-"E"); or ; - the entry has been scored right (":)") or wrong (":(") |||| " (define SW-EMPTY "") (define SW-A "A") (define SW-B "B") (define SW-C "C") (define SW-D "D") (define SW-E "E") (define SW-CORRECT ":)") (define SW-INCORRECT":(") ; Let's make a SUPER simple wordle-esque game... we'll call simple wordle. ; You start the game with a blank screen, waiting for a player to type a ; valid letter (A-E, upper- or lower-case should work; cough, see problem #1); ; pressing any other key should not have any effect. ; Once a valid letter has been pressed, display that (in upper-case form) and ; wait for a key to be pressed, which could be... ; ; - backspace ("\b" in DrRacket) to go to the prior step; ; - or enter (" " in DrRacket) to see if they win ; ; (again, pressing any other key should not have any effect). ; Once enter has been pressed, the game is over. The player wins if they entered ;"C", but lose otherwise. If they win, they see a smiley face (":)") and the game ; returns a certain number of points; if they lose, they get a sad face (":(") and ; lose those points. ; To begin, here is a data definition you'll use for this problem... ; A SimpleWordle is one of: ; ; "A" ; - "B" ; - "C" ; ; - "E" ; ; ":(" ; Interpretation: status of a simple word le game, where... ; - nothing has been entered yet (""); ; - a valid character has been entered ("A"-"E"); or ; - the entry has been scored right (":)") or wrong (":(") |||| " (define SW-EMPTY "") (define SW-A "A") (define SW-B "B") (define SW-C "C") (define SW-D "D") (define SW-E "E") (define SW-CORRECT ":)") (define SW-INCORRECT":(")
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Could you please help complete the following java code. Help is needed where //*** is throughout the code. import java.util.Arrays; import java.util.Random; import java.util.Scanner; // // Project 3...
-
Need help getting the solution to this java code. Need help where //*** is marked throughout the code. Thanks! import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class...
-
Nonvirtual function members of a class, as well as virtual member functions that are not pure, must be defined for that class. The definition of a virtual function in a base class serves as a default...
-
For the standard deductions, there are specified contribution tables to be followed as discussed in the previous modules. More examples: 1. Compute for Tita Pau's monthly, semi-monthly, weekly and...
-
Refer to the information presented in Brief Exercise 3-33 for Pelton Company. The balance in Retained Earnings of $12,200 represents the balance as of January 1, 2019. Refer to Exercise Brief data...
-
Clarissa Company has credit sales of $550,000 during 2019 and estimates at the end of 2019 that 2.5% of these credit sales will eventually default. Also, during 2019 a customer defaults on a $775...
-
Your local newsagent has an accounting year ending on 31 December. The following amounts have been paid for gas heating: Required You are required to show the double entries in the light and heat...
-
Using scapy to hijack a telnet session and insert your own commands. If easier can provide your program with the packet sequence number. Metasploit VM has a Telnet server that can be attacked. Submit...
-
K Points: 0 of 2 Find the indicated IQ score. The graph to the right depicts IQ scores of adults, and those scores are normally distributed with a mean of 100 and a standard deviation of 15. Click to...
-
The graph above represents various flows that can occur through a sewage treatment plant with the numbers on the arcs representing the maximum flow (in tons of sewage per hour) that can be...
-
ABC Company had a beginning balance of $5,900 in its Accounts Receivable account. The ending balance of Accounts Receivable was $8,500. ABC's Salaries Payable account has a beginning balance of...
-
1. What is the force that acts between two charges of different signs, attractive or repulsive? Draw the previous examples in your notebook but assuming that, in this case, the charge on the right is...
-
You drop a stone down a well that is 31.5 m deep. How long is it before you hear the splash? The speed of sound in air is 343 m/s and air resistance is negligible.
-
A-6.50 - D lens is held 11.5cm from an ant 1.00mm high. What is the height of the image? Follow the sign conventions. Express your answer to three significant figures and include the appropriate...
-
How can ABC Manufacturing effectively utilize performance appraisals as a tool for enhancing employee motivation and performance within the organization?
-
During a professional football game, video analysis can provide detailed metrics about how a football leaves the quarterback's hand during a throw to a wide receiver. For a certain pass, the football...
-
1. Was Boulos the victim or the villain in the decisions made to dismiss him? Give evidence from the case to support your answer. 2. Describe the factors that contributed to Boulos' failure as a...
-
Shreemaya Hotel in !adore was facing a problem of low demand for its rooms due to off season. The Managing Director (MD) of the hotel, Mrs. Sakina was very worried. She called upon the Marketing...
-
Consider a pure exchange economy with two consumers and two goods. At some given Pareto efficient allocation it is known that both consumers are consuming both goods and that consumer A has a...
-
Here is an example of the Battle of the Sexes game discussed in the text. Two people, let us call them Michelle and Roger, although they greatly enjoy each others company, have very different tastes...
-
If Amy spent her entire allowance, she could afford 8 candy bars and 8 comic books a week. She could also just afford 10 candy bars and 4 comic books a week. The price of a candy bar is 50 cents....
-
In preparing monthly financial statements, overapplied overhead is rep orated in the balance sheet as a(an): (a) prepaid expense. (b) unearned revenue. (c) noncurrent asset. navigator (d) noncurrent...
-
Hal Adelman is studying for an accounting midterm examination. What should Hal know about how management may use job cost data?
-
What are the major differences in measurement principles between the Anglo-Saxon, Nordic, Germanic, Latin, and Asian countries?
Study smarter with the SolutionInn App