Skip to content

imabhinavdev/javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My JavaScript Learning Journey - Readme

Introduction

Welcome to my JavaScript learning repository! This repository contains my JavaScript project files as well as the files documenting my journey of learning JavaScript. As a first-person account, this repository serves as a reflection of my progress, challenges, and accomplishments in learning JavaScript.

Repository Structure

The repository is organized into the following directories and files:

  • Projects: This directory contains my JavaScript project files. Each project is in its own subdirectory, with a separate README file explaining the project's purpose and how to run it.

  • Learning: This directory contains my learning files, including code snippets, exercises, and tutorials that I have worked on during my JavaScript learning journey. The files are organized into subdirectories based on different topics or learning resources.

  • Documentation: This directory houses any additional documentation that supports my JavaScript learning process. It may include notes, summaries, or explanations of key concepts and techniques.

How to Use

If you are interested in exploring my JavaScript projects, navigate to the respective project's subdirectory in the "Projects" directory. There, you will find a README file that provides instructions on how to run and interact with the project.

To dive into my learning files, browse through the subdirectories within the "Learning" directory. Each subdirectory may cover a specific topic or correspond to a particular learning resource. Feel free to explore the files and code snippets to gain insights into my learning process and understanding of JavaScript.

Technologies Used

The JavaScript learning journey and projects in this repository have been developed using the following technologies and tools:

  • JavaScript: The main programming language for implementing the projects and exercises.

  • HTML/CSS: Additional languages used for creating web-based projects and examples.

  • Code editors/IDEs: Various code editors or integrated development environments used for writing JavaScript code, such as Visual Studio Code, Atom, or Sublime Text.

Contributions

As this repository primarily serves as a personal learning journey, contributions are not expected. However, if you find any issues or have suggestions for improvements, feel free to open an issue in the repository, and I will be happy to discuss it.

Conclusion

This repository documents my growth as a JavaScript developer and my exploration of different JavaScript projects and learning resources. I hope that by sharing my journey, it can inspire and provide insights to fellow learners in their own JavaScript endeavors. Happy coding and may your JavaScript learning journey be filled with exciting discoveries!

Game

Pig Game for 2 Players - Readme

Introduction

This is a simple implementation of the Pig game for 2 players. The objective of the game is to be the first player to reach a maximum score of 100. The game provides a user-friendly interface with a "New Game" button to start a new game at any time.

How to Play

  1. Open the Pig Game application.
  2. The game starts with Player 1's turn.
  3. Player 1 rolls the dice by clicking the "Roll" button.
  4. If Player 1 rolls a 1, their turn ends, and their score remains unchanged.
  5. If Player 1 rolls a number from 2 to 6, the number is added to their turn total.
  6. Player 1 can choose to either roll again by clicking the "Roll" button or hold their score by clicking the "Hold" button.
  7. If Player 1 chooses to roll again and rolls a 1, their turn ends, and their turn total is reset to 0.
  8. If Player 1 chooses to hold, their turn total is added to their overall score, and the turn passes to Player 2.
  9. Steps 3-8 are repeated for Player 2.
  10. The game continues alternating between players until one player reaches a score of 100 or more.
  11. The player who reaches the maximum score first wins the game.

New Game

At any point during the game, you can start a new game by clicking the "New Game" button. This will reset the scores and allow both players to start again.

Technologies Used

The Pig Game for 2 Players project utilizes the following technologies:

  • HTML: for the structure and layout of the game interface.
  • CSS: for styling and visual presentation.
  • JavaScript: for implementing the game logic and interactivity.

Installation

  1. Download the project files from here.
  2. Extract the files to a desired location on your computer.
  3. Open the project folder and locate the index.html file.
  4. Double-click the index.html file to open the Pig Game in your web browser.

Conclusion

The Pig Game for 2 Players is a fun and engaging game that provides entertainment for two players. Enjoy playing and may the best player win!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published