尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Welcome to the Pig Dice Game repository! This game is a fun, interactive project developed as part of a JavaScript course on Udemy. It's designed to demonstrate the use of JavaScript in building web applications. The game is deployed and playable here.
Pig is a simple dice game which involves rolling a single dice. It's played between two players who take turns. The goal is to be the first player to score 100 or more points.
Vanilla HTML/CSS/JavaScript with no build step or dependencies. The game logic lives in script.js and uses 'use strict' mode:
init() sets up initial scores, current totals, the active player, and resets UI state. Called on load and whenever "New Game" is clicked.--0 / --1 suffix convention (e.g. score--0, current--1) and are looked up via template literals.The game is deployed using Vercel, which allows users to play the game online without needing to set it up locally. To play, simply visit the game's website.
This game was created as a project for The Complete JavaScript Course 2024: From Zero to Expert!. If you're interested in learning JavaScript or enhancing your web development skills, this course is a comprehensive resource covering everything from the basics to advanced topics in JavaScript.
A special thanks to Jonas Schmedtmann, the instructor of the course, for creating such a comprehensive and engaging course on JavaScript! His expertise and teaching methodology have been invaluable in the learning process.
Thank you for checking out the Pig Dice Game. Have fun playing!