This is a simple web-based project. To run it properly, you need to use a local web server due to browser security restrictions (CORS).
index.html— Main HTML filescript.js— JavaScript logicstyle.css— Stylesheet
-
Start a Local Web Server
If you have Python installed, you can use the following command in your project directory:
python -m http.server 8000
This will start a server at http://localhost:8000.
-
Open in Browser
Go to http://localhost:8000 in your web browser to view and use the project.
Modern browsers block JavaScript files loaded directly from the file system for security reasons. Using a local server avoids these issues.
- Edit
script.jsto change the game logic or interactivity. - Edit
style.cssto change the appearance.
This project is for educational and personal use.