Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhathiyaprasad/freecodecamp-js-tutorial


https://github.com/bhathiyaprasad/freecodecamp-js-tutorial

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

Tutorial for Javascript Beginner Course

Here Is the Link "https://youtu.be/jS4aFq5-91M?si=tfNWE87uOtxXWGeb"

Rock Paper scissors Game
=======
Rock Paper Scissor Game


User inputs Rock , Paper , Scissor
Processing - Computer cheking inputs and compare with the comouter's algorithm
output - outputn the values for user inputs

Logic - function 1. Rock beats scissor
2. scissor beats paper
3. paper beats rock
Now Its time Create A new Varuable to identify the inputs of computer Side because This game needed two persons
Create a variable called computerMove

Const computerMove ='';
Const computerMove1 = '';
Const computerMove2 = ''; '';
let result2 = '';

Created following variables in empthy to stores data from Algorhythm

Then Instead of using Console.log to get much more user experience the output method change to Alert Window to Display User's and Computer's Input and The final Results

alert('You Picked Rock'+' Computer Picked'+ ' ' + computerMove +' '+ result );
Added Images using,

style="background-image: url(ImageName.jpg);
Then added relative image for the bettter User Experience