尚未检测到更新。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!