GPT Slot Machine
A simple HTML (+Javascript + CSS) slot machine game made with ChatGPT using the following prompt:
Make a slot machine game in html with a graphical interface. Make it so the player starts with 100 coins. The player wins coins when there are 3 of the same symbol in a horizontal row on the reels. The player can choose the amount of coins they are betting for each spin, the amount of coins the player bets can be 5, 10, 15, 25, 50 or 100 coins. Add a coin count. The chosen amount of coins that are bet will be removed from the player's coins. The more the player bets, the more they can win back. Use 155x155 PNG sprites instead of emojis for the symbols. After the player presses spin, all reels keep spinning for 2 seconds and the symbols keep cycling and then it's revealed if the player has won. If the player runs out of coins, allow them to restart the game with 100 coins by clicking a "Restart" button. Center all the elements and make a sophisticated graphical interface.
Ps. The symbols are NOT generated by AI, they are generic slot machine symbols.
I do not condone using AI for making games. This was simply an experiment of what ChatGPT was capable of doing as of May 2023.
Feel free to download the source code and to snoop through it.
Updated | 6 days ago |
Status | Released |
Platforms | HTML5 |
Author | Sonni22 |
Tags | artificial-intelligence, chatgpt, slotmachine |
Average session | A few seconds |
Languages | English |
Download
Download
source.zip 114 kB
Comments
Log in with itch.io to leave a comment.
nice game