Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Dont even try to copy. Copied asnwers will be reported straightaway ; Let's make a SUPER simple wordle-esque game... we'll call simple wordle. ; You
Dont even try to copy. Copied asnwers will be reported straightaway
; 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":(")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started