Rock paper scissors
Three buttons, and you are playing against the computer · Game ●○○
Change these if you like
Prompt
Make a game of rock paper scissors. It has to be a single HTML file that opens in a browser with nothing to install and no other files. Put the CSS and JavaScript inside that same file. The rules are best of five. Put the buttons in the middle of the screen. When one is pressed, the computer picks at random and the result appears. The screen only needs to show: - what I picked and what the computer picked - the result of this round (win / lose / draw) - the score so far - a play-again button Make the text large enough to read on a phone, and use only three or four colours. Do not use image files or any external address; use emoji or letters instead if you need a symbol. When you are done, go through it as if you were pressing the buttons yourself. Check that the win and lose calls match the rules, that the score adds up, and that play-again really returns to the starting state. Fix anything wrong and give me only the final version.
What it uses: One file only · Say what it is first · Decide what shows · Have it check itself
If it looks flat, ask once more: "make the buttons big and rounded, and have the result move a little when it appears".
Paste what came back
You might also like