Skip to content

Ngaicode/roll-the-dice

Repository files navigation

Roll the dice

By Ngaicode

You can find the project hosted at Roll-the-dice


A simple html ,css and javascript dice game

Hello world!

One common pitfall of modern browser games is that they are heavily resource reliant

What my project aims to do is provide a simple fun multiplayer game that doesn't put much strain on the computer's memory and cpu

One wins the game by being the first one to roll up to 50, however, whenever a player rolls a one, their current accumulated score gets wiped and the game switches to the next player. If the player chooses to hold their score, it gets added to their total score, and the game switches to a different player.


Use of a public API to fetch pokemon data

fetches data from pokemon API available at pokeapi.co

In the true spirit of gaming,what better way to be entertained than having your favorite pokemon character displayed on the screen as you play the game

example code block

const apiData = {
  url: "https://pokeapi.co/api/v2/",
  type: "pokemon",
  //   if you change the ID,it'll change the pokemon displayed
  id: "25",
};

About

A silly little game to help me practise DOM manipulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published