MY FIRST JAVASCRIPT PROJECT
INTRODUCTION
This is my first Javascript project with the help of a tutorial by Jonas Schmedtmann, which I used in learning Javascript.
It is called Pig Game.
It is built with HTML, CSS and Javascript.
PROGRAMMING CONCEPT USED
- ES5
- DOM
TECHNOLOGIES USED
- HTML
- CSS
- JAVASCRIPT(Vanilla Javascript)
HOW IT WORKS
Game Rules
- The game has 2 players, playing in rounds.
- In each turn, a player rolls a dice as many times as he wishes. Each result get added to his ROUND score.
- BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn.
- The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL score. After that, it's the next player's turn.
- The first player to reach 100 points on GLOBAL score wins the game.
This is the link to my game - eredun.github.io/PigGame
PURPOSE OF THE GAME
- It is a game which can be played during leisure hours.
- It can be used to relieve stress while playing.
- It is played for fun.
CHALLENGES FACED
- I had to cope with the fact that I'm no more a civil engineer anymore but now aspiring to be a developer.
- It was tedious starting because it is my first javascript project although it went well.
- After pushing to github, part of my code wasn't displaying the icons precisely, which is still not displaying but I am still working on it though.
THINGS LEARNT DURING THE PROJECT
- I learnt a lot of new javascript elements, for example,
strings, arrays, objects, e.t.c
- Being my first javascript project, I learnt working with the DOM.
APPRECIATION
My sincere appreciation goes to the following who made it a success, without them, it wouldn't have been possible
- Jonas Schmedtmann - Javascript Developer(tutor, owner of tutorial video)
- Sodiq Farayola - Backend Developer(Node.js)
CONCLUSION
Programming is a beautiful course, with the little I've done, I really want to continue learning.