Code Monkey home page Code Monkey logo

pig-game's Introduction

Pig Game

This project is a simple dice game with 2 players. I learned how to implement roll dice, hold dice and start new game logics with javascript.

Project Description

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. The first player to score 100 or more points wins the game. (Learn more)

This project is a coding-along javascript with the Udemy The Complete JavaScript Course 2022 by instructor Jonas Schmedtmann. HTML, CSS and image files were provided by the instructor.

What I've learned:

  • DOM Manipulation
  • CSS Style Manipulation
  • Event Handling

Live demo link

https://piggame-hyeyoung.netlify.app/

logic flowchart

The game logic

How to Install and Run the Project

  1. Clone the project
  git clone https://github.com/hykim-soulis/Pig-game.git
  1. Go to the project directory
  cd my-project
  1. Double-click the index.html file

Resource

The below link is the instructor's github address.

Instructor's GitHub

Go to complete-javascript-course/07-Pig-Game/starter/

pig-game's People

Contributors

hykim-soulis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.