Member-only story

spock-rock game with Javascript

YvonneDev
3 min readOct 16, 2020

--

Rock-paper-scissors-lizard-spock game is a more complicated game. The rule below:

CODE Github

DEMO

HTML

Game is in the game-container.

Player-container includes score ,choice text and five selectable icon with onclick event.

computer container is the same pattern. but no event .

Whenever reset,it’s time to run the resetAll() function.

And the result text shows everytime run event.

CSS

game container : width and height.

set the header border-radius seperately.

delete last icon margin-right to make all the icons in one line.

--

--

YvonneDev
YvonneDev

Written by YvonneDev

❤️Front-end Web Development self-taught *share what I learned*

No responses yet