7th Week of #100DaysOfCode with JavaScript. What did I Learn so far?

Nick Hollins
2 min readJun 22, 2020

Topic I learned this week: NONE!

I surprisingly have not learned anything new this week. The reason for this is that I did not want to get stuck in tutorial hell (this is a big problem beginners face). So instead of learning something new, I decided to take on my first small JavaScript project!

The mini project is called “The Pig Game”

Overall, this is a online dice game. when determining how to code the game I had to first establish the requirements(rules) for the game.

The Game Rules

  • The game has only 2 players
  • Each turn a player rolls the dice as many times as they wish. Each result will get added to the ROUND SCORE.
  • If the player rolls a 1 then they round score is lost. After that it is the next player turn.
  • The player can choose to HOLD, which just mean the ROUND score gets added to the global (overall) score. After the player choose to hold it is the next players turn.
  • The first player to reach the overall score of 100 wins.

The UI

The User Interface was already designed so that I can focus on just JavaScript even though I find myself tweaking things that I think look better.

Overall

I do not want to get into the code too much today because I haven’t really did too much. I can say I have learned how to manipulate the DOM, work with on click event listeners, and anonymous functions. This project is based on a tutorial but to get out of tutorial hell I decided to implement different features that is not in the tutorial. I also already have a mini project that I will work on in the future based off these concepts I am learning now.

Follow me on social media

Instagram

Facebook

LinkedIn

--

--

Nick Hollins

Developer. Writer. Creator. Always learning. Feel free to email me: hollinsaquile@gmail.com