Skip to content

MuhammadAlifBudiman/paper-rock-scissors

Repository files navigation

PaperRockScissors

This project is a simple implementation of the classic Paper-Rock-Scissors game, built with Angular. It is part of the Udemy course 30 Days of Angular: Build 30 Web Projects with Angular.

Project Overview

The PaperRockScissors app allows users to play the traditional game against a computer opponent. The application demonstrates Angular fundamentals, including component-based architecture, event handling, and state management.

Features:

  • Choose between Rock, Paper, or Scissors
  • Play against a computer with random choices
  • Automatic score tracking for both player and computer
  • Game reset functionality
  • Simple and clean UI

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/MuhammadAlifBudiman/paper-rock-scissors.git
    cd paper-rock-scissors
  2. Install dependencies:
    npm install

Running the Development Server

Start the local development server:

ng serve

Visit http://localhost:4200/ in your browser. The app will reload automatically if you make changes to the source files.

Building the Project

To build the project for production:

ng build

The build artifacts will be stored in the dist/ directory.

Running Tests

Unit Tests

Run unit tests with Karma:

ng test

End-to-End Tests

Run e2e tests (if configured):

ng e2e

Learning Resources

License

This project is for educational purposes as part of the Udemy course. Please refer to the course or instructor for licensing details.

About

A simple Paper-Rock-Scissors game built with Angular. Part of the Udemy course "30 Days of Angular: Build 30 Web Projects with Angular".

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published