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...
-
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...
-
Tyndal Company had the following items that required adjustment at December 31, 2019. a. Purchased equipment for $40,000 on January 1, 2019. Tyndal estimates annual depreciation expense to be $3,100....
-
Demand for Quiggly Pops follows an up and down pattern over the four quarters of a year, with peaks in the spring and winter months when special promotions are held. Production is handled by a highly...
-
Define the Haar's wavelets function \(\psi(t)\) and verify that for every \(t\), \[si(t)= \begin{cases}1, & 0 \leq t
-
Eric, your friend, received his Form W-2 from his employer (below) and has asked for your help. Erics 2018 salary was $145,000 and he does not understand why the amounts in Boxes 1, 3 and 5 are not...
-
Discuss the implications of the efficient market hypothesis on the effectiveness of technical and fundamental analysis in stock valuation.
-
The return on equity (ROE) of Child SA is 14 per cent and it has a payout ratio of 0.5. Current book value per share is 50 and the book value will grow as the firm reinvests earnings. Assume that the...
-
Translate the following symbolic statements in words. 1)p ~q 2)s~r 3)q ~s Translate the following verbal statements into symbols. 4)Ground moves affect Flying-type Pokmonif some Pokmondo not have a...
-
A contracted fee schedule has been agreed to by a Provider with an Insurance Company. In this example, a service is $250 per the Provider's fee schedule. The contracted amount is $200.Can the...
-
Mark Twain has committed to opening a second location in the next eight months. Details regarding this expansion were included in the financial information find qualitative characteristic of...
-
How do resource utilization patterns and reallocation of resources relate to student performance?Items to consider in your discussion are why we reallocate resources and how do we reallocate so it...
-
Esperanza's mutual fund investment was originally purchased for $20,000 with a 2% front-load at the then NAVPU of $10. If she redeems her entire investment today, at the NAVPU of $12.75, how much...
-
You are asked to value an investment opportunity. You are given a required rate of return of 12.75% APR compounded quarterly. However, the investment makes semiannual payments. You need a required...
-
Prerenal causes of acte renal failure include: a. Acute tubular necrosis b. Pyelonephritis O c. Hemorrhage d. Tumors
-
Explain the buyers position in a typical negotiation for a business. Explain the sellers position. What tips would you offer a buyer about to begin negotiating the purchase of a business?
-
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....
-
The circuit diagram for a rectifier is sometimes drawn with a resistor in the center. Would the rectifier function if this resistor were replaced by a capacitor?
-
The rectifier shown in Figure P32.28 converts the alternating emf from an \(\mathrm{AC}\) source to a positive-only potential difference from a to \(\mathrm{b}\). Sketch graphs showing \((a)\) the...
-
The logic gate in Figure P32.30 contains four field-effect transistors. Each of the gates A-D of the transistors may be positively biased ( \(\mathrm{Y}\) in the table) or not ( \(\mathrm{N}\) in the...
Study smarter with the SolutionInn App