Click here for free DL of the app version that can save data.
No:25052 90
Prev Next
Card game where you pick a number between 1 and 3...ALL
Developer User12143|Date and time 23/11/16 20:18:48
Build time 39.007 sec|Game capacity 1.525KB|Script


Sure! Here's a simple implementation of the card game you described using JavaScript in a single HTML file:


Card Game

Pick a number between 1 and 3.



This game includes three buttons labeled as 1, 2, and 3 representing the user's choices. When the user clicks on any of these buttons, the `play` function is called with the chosen number. The computer's choice is randomly generated using `Math.random()`. Based on the rules you provided, the game determines the winner and displays the result in the paragraph with the `result` id. You can copy this code into an HTML file and open it in a web browser to play the game on a smartphone or any device with a web browser.

Prev Next   Back  0  0 Menu 

[PR]現在の本の売れ筋ランキング

Click here for free DL of the app version that can save data.

(C)2023 HisashiApp