Hi! I came here last week to showcase my little “guess my number” game. You guys gave incredible suggestions and feedback, thank you very much for that.
This week I completed another small project, which is the “Pig Game”. For those who don’t know, it’s a simple dice game first described in print by John Scarne in 1945. Players take turns to roll a single dice as many times as they wish, adding all roll results to a running total, but losing their gained score for the turn if they roll a 1.
You can check it out clicking here.
I tried to put into practice everything I learned from javascript in those 3 months that I am studying programming. Variables, Arrays, Functions, DOM manipulation, etc. My biggest difficulty is still making the app responsive in an effective way. Sometimes I feel that it takes me a long time (in this project I needed almost two full days) to implement responsiveness and still it is still not 100% good.
The game is for two people to play, but if you cant play with anyone next to you at the moment, it is still possible to play alone for the purpose of testing the mechanics.