Pig-game (ludo) is a classic board game played between friends and family. Play the dice game of kings! Recall your childhood! Check out the game here
- The game has 2 players, playing in rounds
- In each turn, a player rolls a dice as many times as he wishes. Each result gets added to his CURRENT score
- BUT, if the player rolls a 1, all his CURRENT score gets lost. After that, it's the next player's turn
- The player can choose to 'Hold', which means that his CURRENT score gets added to his GLOBAL score. After that, it's the next player's turn
The first player to reach 100 points on a GLOBAL score wins the game.
This project can be tested and implemented using Microsoft VSCode and we can run using Open with a live server. Working with XML can be done in Eclipse or Netbeans
This game was developed using JavaScript Math.random() function that draws numbers randomly and using document.querySelector()
This page is made for learning purposes only. Copyright © 2022 Stefan Gogov. All rights reserved.