From 0756cdc76c74826c2d50b90c1504c715ea0992f4 Mon Sep 17 00:00:00 2001 From: kashnx <148524648+kashnx@users.noreply.github.com> Date: Sat, 13 Jan 2024 15:23:52 +0530 Subject: [PATCH] Add files via upload --- dice1.png | Bin 0 -> 2557 bytes dice2.png | Bin 0 -> 2213 bytes dice3.png | Bin 0 -> 2435 bytes dice4.png | Bin 0 -> 2616 bytes dice5.png | Bin 0 -> 2824 bytes dice6.png | Bin 0 -> 2984 bytes index.html | 22 ++++++++++++++++++++++ index.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ styles.css | 29 +++++++++++++++++++++++++++++ 9 files changed, 100 insertions(+) create mode 100644 dice1.png create mode 100644 dice2.png create mode 100644 dice3.png create mode 100644 dice4.png create mode 100644 dice5.png create mode 100644 dice6.png create mode 100644 index.html create mode 100644 index.js create mode 100644 styles.css diff --git a/dice1.png b/dice1.png new file mode 100644 index 0000000000000000000000000000000000000000..543a9eec3de2eefb95249ba9986908dd78461634 GIT binary patch literal 2557 zcmbVM3sh708UOC(5-t)n6cCW3UW2aA3ArHyF)YMb}eNQP}CJv^sf+)wRRPRv#Qu3AI(k2T|FY$s_v*#O~qg&e=Wp-v9Ui zfA8=6egC)8QdarSm@@+ae3MqI(g83;VnFiHl51`(Kud^aWws^5SYRpBm|0Nd8@I4j zl3ufwO=mUv<*$ChE(h=^)MaK{vXj@ywMKn}#w`@9<&iPevqy-$nez+e>8iwMzR)gCSZJ}Bnznzg7O1!2?5sCGZ>$SsJXk*AtdKX7R%0=m zGmXaLX#}Jd8ZE|>LZgXNW=N^U$r`QB;6C`VyFpX=s#vq`H8wxdY}8Ye6_)E>5W)Y> zd`dU}|EZb?1tW69<6q!1eS|RRCZB^JZJv)0Yd|w&M#Hhbt;-6)`$>{Yk!ihl|3&M>#8$cT|Z0SDk$Gdvuh`}kJ*LGo(r$!y>+`=w;_k{LS>)IL1ea?%3) z6_?)b>=ZQl#;Z03-VA`QS#wvZX=i=qB1b6*iXV*BUcc9I&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;Pa)|e%S)ZyeDt56{oQSq;ZZ5(zyP}~FYqufE z9etlTqt8N)^9jf*i0WPX`ciR3OVQnBZ5PlE+}u`hJor6BrIz2EVYTd0tlDKzhz6_3 zD#bp3-t_v_(-Eenvb^2*Qi|OGpI|#pNyu}2WEN-&9oO2Ct$6t^-CvoHJ@0l=f#@{Uj=dkeMa~AKvRB0mZ~)CxVOfJKn}~isVc&X-qlHE48#Z9D zh@MXKl?LwZ+UiU~phNp|a+5e$}=GaxK-&is)f4Yc{r$|b+4WzP?KwLDKf z`-j7AO};SH15wORc;Z&fjdiX%58jJ_5^r6c!qa@PeZ1uZQ`E(=i}b&Z*9Y2QL)(kC zCJ2VuY^_IA+ThOW^4A-{(vILnIYu?4fByXvG{x|)QZS@f@{=FOyfk#&1}ro$H}Zkl zJ;{Pmbkn7?6m_IqD<)oDe*bR5D{^1z@h4YmA6P*u( zR4fvUUT--~ugNu0rSzP*tueSoCzf=n-=eXE_%T>%__@I)z-?v(04GJG)1rSo# zd>AC~FZ}2L5_lKfAd)8ytkcH>UeZ*hdSlTKqY{@eOJ+R0=MN z-kSQ666Gva=kY~#7ew1xwA)u(k3P+DE6hVba7G&+-8#^udyJ|GlzXzMB0?H1d%EBC z0PlWr#btKp{+Gu#|MOO`19FgC(tF*gKi9qb(&1M6nBv6W^Q)fe)o0b}ZZq60u0F-kqKFM9_4rC^8TR-o{~lp_PI01IuW&p4pm(8%gG1*GFsdaNpv z;nt3~gC!tA3pv{$A2dd=$i4=-K$jf?T#1uwG{rBpjzLUifAnHirTmB?Qr56*Sj$}h kAI61QgV1~qi0P!A3M?uxW^6XMpaAp=4p{Gh(T|<^UuIA#QUCw| literal 0 HcmV?d00001 diff --git a/dice6.png b/dice6.png new file mode 100644 index 0000000000000000000000000000000000000000..8b98b3c374207c832ca4c8b3d583fde1c71e0970 GIT binary patch literal 2984 zcmaJ@2~-p37XBv$*%6S%4H|+V0@>Lsd)S2VSQV?q1QH}*7DLz-1_~%uRB(X=WwC-( z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>nYVyYV;%hxl2deNPp^ + + + + DICE GAME + + + + +
+

Refresh Me

+ +

Player 1

+ +
+

Player 2

+ +
+ + + + diff --git a/index.js b/index.js new file mode 100644 index 0000000..376f9b4 --- /dev/null +++ b/index.js @@ -0,0 +1,49 @@ +var n=Math.floor(Math.random()*6)+1; +var n2=Math.floor(Math.random()*6)+1; +if (n===1) { + document.querySelector("img").setAttribute("src", "dice1.png"); + } + else if (n===2) { + document.querySelector("img").setAttribute("src", "dice2.png"); + } + else if (n===3) { + document.querySelector("img").setAttribute("src", "dice3.png"); + } + else if (n===4) { + document.querySelector("img").setAttribute("src", "dice4.png"); + } + else if (n===5) { + document.querySelector("img").setAttribute("src", "dice5.png"); + } + else if (n===6) { + document.querySelector("img").setAttribute("src", "dice6.png"); + } + + +if (n2===1) { + document.querySelectorAll("img")[1].setAttribute("src", "dice1.png"); + } + else if (n2===2) { + document.querySelectorAll("img")[1].setAttribute("src", "dice2.png"); + } + else if (n2===3) { + document.querySelectorAll("img")[1].setAttribute("src", "dice3.png"); + } + else if (n2===4) { + document.querySelectorAll("img")[1].setAttribute("src", "dice4.png"); + } + else if (n2===5) { + document.querySelectorAll("img")[1].setAttribute("src", "dice5.png"); + } + else if (n2===6) { + document.querySelectorAll("img")[1].setAttribute("src", "dice6.png"); + } + + if(n>n2){ + document.querySelector("h1").innerHTML="Player 1 Wins";} + else if(n