This website uses cookies.Before continuing to use our website, you agree and accept Privacy policy.Accept

Simple Billiards made with AI


Drag white ball to move.


PC - Smartphone



DESCRIPTION

This is a billiards game created with AI.

While there are some quirks in its functionality, it operates based on basic physics properties.

When a ball enters a pocket, it is removed from the game.

HOW TO MAKE/PROMPT

Created using Claude sonnet. The prompt was as follows:
Make a billiard HTML game

#init
- 400x400 canvas. green background.
- The nine balls are arranged in a pyramid shape.
- Only the white ball can be moved by dragging.
- There are pockets in the four corners
- The reset button returns everything to the starting position.

#gameloop
- When you drag the white ball, it rolls according to the speed of the drag.
- Collisions between balls result in a physics-based rebound.
- Each ball is rendered individually.
- Balls that move over a pocket are deleted.

What if there is an error?




<< menu

On-site search