Click here for free DL of the app version that can save data.
No:6671 83
Prev Next
Make an AI game
Developer User3913|Date and time 23/7/3 2:58:57
Build time 30.149 sec|Game capacity 3.516KB|Script


Sure! Here's a simple AI game implemented as a single HTML file using JavaScript. The game depicts a rock-paper-scissors game where the player can compete against the computer.


Rock-Paper-Scissors

Player's choice Computer's choice



To play the game, save the above code in a file with a `.html` extension (e.g., `ai_game.html`) and open it in a web browser. The game will display three buttons for the player to choose from: Rock, Paper, and Scissors. When the player clicks a button, the game will randomly generate the computer's choice and display both choices as pictograms. The result of the game (win, loss, or tie) will be shown below the choices. Note: You need to replace the `emozi_all/rock.png`, `emozi_chicken.png`, and `emozi_all/scissors.png` paths with the actual paths to your pictogram images or use appropriate image references if you decide not to use pictograms.

Prev Next   Back  1  1 Menu 

[PR]現在の人気ゲームランキング

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

(C)2023 HisashiApp