js1024

js1024

Annual JavaScript Golfing Competition

Status Closed · starts 1 July Participant rating Open

Pig Game
by Andrew Berry
Test your luck against the AI in this classic dice game. Roll the die each turn to accumulate points. Beware, rolling a "1" ends the turn and forfeits the turn's points. Opt to "hold" at any time to end the turn and secure your points. The first player to reach 100 points wins!
1019/1024 bytes - HTML project


W2hdIFBpZyBHYW1lIFsvaF0NCg0KW2JdIEhvdyB0byBwbGF5OiBbL2JdDQoNClBsYXllcnMgdGFrZSB0dXJucyB0byByb2xsIGEgZGllLCB0YWxseWluZyB0aGUgc3VtIG9mIHRoZWlyIHJvbGxzIHdpdGhpbiBhIHNpbmdsZSB0dXJuLiBQbGF5ZXJzIGNhbiByb2xsIGFzIG1hbnkgdGltZXMgYXMgdGhleSB3YW50IHBlciB0dXJuLiBIb3dldmVyLCBpZiBhIHBsYXllciByb2xscyBhICcxJywgYWxsIHBvaW50cyBjb2xsZWN0ZWQgd2l0aGluIHRoYXQgdHVybiBhcmUgZm9yZmVpdGVkIGFuZCB0aGUgdHVybiBlbmRzLiBQbGF5ZXJzIGNhbiBhbHNvIG9wdCB0byAiaG9sZCIsIGF0IHdoaWNoIHBvaW50IHRoZSB0dXJuJ3MgcG9pbnRzIGdldCBhZGRlZCB0byB0aGVpciBvdmVyYWxsIHNjb3JlLiBUaGUgZ2FtZXBsYXkgY29udGludWVzIHVudGlsIG9uZSBwbGF5ZXIgYWNoaWV2ZXMgYSB0b3RhbCBzY29yZSBvZiAxMDAgcG9pbnRzLg0KDQpbYl0gRmVhdHVyZXM6IFsvYl0NCg0KLSBIdW1hbiB2cyBBSQ0KLSBVc2VzIEpTIHByb3hpZXMgdG8gdXBkYXRlIFVJIHdoZW4gZ2FtZSBzdGF0ZSBjaGFuZ2VzDQotIFBsYXlhYmxlIG9uIG1vYmlsZQ0KLSBJbmNvcnBvcmF0ZXMgMjAyMyB0aGVtZSAibHVjayINCg0KUmVwbzogW2xpbmtdIGh0dHBzOi8vZ2l0aHViLmNvbS9hbmRyZXdiL3BpZy1nYW1lIFsvbGlua10=

Comments & ratings

Participant feedback and public notes for this demo.

10 total

Rating comments

Feedback submitted with participant scores.

10
Anonymous participant 67/100

i like the UI.

Anonymous participant 85/100

Works well don desktop and mobile, neat dice rolling animation, and an AI that is apparently a lot luckier than I am!

Anonymous participant 95/100

Loved: it looks so fresh and so clean, that little animation. Wanted: just a little something extra, so it stood out more? I ranked you at the "Pro" level in Games/Toys. I awarded points to each demo based on several criteria. I scaled the scores for all demos that I ranked, the best becoming 100, so your final score differs from the intital score I gave you.

Anonymous participant 70/100

no comment

Anonymous participant 50/100

80

Anonymous participant 75/100

Solid execution, but nothing above that.

Anonymous participant 70/100

good design, i like the dice roll animation

Anonymous participant 92/100

I like the spinning animation.

Anonymous participant 65/100

Interesting game mechanism, the AI is often greedy yet its strategy works better than mine. Well executed, although I had higher expectations for the GUI (highlight the buttons, see the die rolling).

Anonymous participant 90/100

Fun, animations actually kept me engaged

Public comments

Notes left by visitors.

0

No public comments yet. Start the conversation below.

Leave a public comment

Your comment appears publicly after the human check.

0/512
Human checkOne quick verification before publishing.