working with small bugs

This commit is contained in:
Yurun Chen
2024-09-26 10:29:06 +10:00
parent dee969abe2
commit 1fdec399e2
61 changed files with 732 additions and 223 deletions

4
2q Normal file
View File

@@ -0,0 +1,4 @@
sys-kernel/linux-firmware linux-fw-redistributable
x11-drivers/nvidia-drivers NVIDIA-r2
games-util/steam-launcher ValveSteamLicense
net-im/discord all-rights-reserved

View File

@@ -0,0 +1,8 @@
<svg id="svg" fill="#000000" stroke="#000000" width="200px" height="200px" version="1.1" viewBox="144 144 512 512" xmlns="http://www.w3.org/2000/svg">
<g id="IconSvg_bgCarrier" stroke-width="0"></g>
<g id="IconSvg_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC"></g>
<g id="IconSvg_iconCarrier">
<path xmlns="http://www.w3.org/2000/svg" d="m588.93 384.25h-173.18v-173.18c0-5.625-3-10.824-7.8711-13.637s-10.875-2.8125-15.746 0-7.8711 8.0117-7.8711 13.637v173.18h-173.18c-5.625 0-10.824 3-13.637 7.8711s-2.8125 10.875 0 15.746 8.0117 7.8711 13.637 7.8711h173.18v173.18c0 5.625 3 10.824 7.8711 13.637s10.875 2.8125 15.746 0 7.8711-8.0117 7.8711-13.637v-173.18h173.18c5.625 0 10.824-3 13.637-7.8711s2.8125-10.875 0-15.746-8.0117-7.8711-13.637-7.8711z"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 830 B

View File

@@ -63,7 +63,7 @@ class Card {
return this.#suit;
}
getColor() {
getColour() {
/*Returns the card's color*/
return this.#color;
}

View File

@@ -3,7 +3,7 @@
<head>
<style>
html {
background-color: #808080;
background-color:#00CEC8`;
}
/*canvas styling*/
#canvas {
@@ -12,13 +12,13 @@
bottom: 0;
left: 0;
right: 0;
aspect-ratio: 16/9;
margin:auto;
border: solid rgb(400,400,300) 4px;
}
</style>
<title>Solitaire - Klondike - Yurun Chen</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<script type="module">import { Canvg } from 'https://cdn.skypack.dev/canvg@^4.0.0';</script>
<script type="text/javascript" defer src="card-v2.js"></script>
<script type="text/javascript" defer src="deck-v2.js"></script>
<!-- main game javascript file-->
@@ -28,6 +28,8 @@
</head>
<body>
<canvas id="canvas" width="400" height="300"> </canvas>
<input id="clickMe" type="button" value="DrawStock" onclick="game_instance.draw_stock();" />
<input id="clickMe" type="button" value="DrawStock" onclick="game_instance.reset();" />]\
<h1 id="coord"></h1>
</body>
</html>

BIN
cards/10C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/10D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
cards/10H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/10S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
cards/2C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
cards/2D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
cards/2H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
cards/2S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
cards/3C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
cards/3D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
cards/3H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
cards/3S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
cards/4C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
cards/4D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
cards/4H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
cards/4S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
cards/5C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
cards/5D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
cards/5H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
cards/5S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
cards/6C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
cards/6D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
cards/6H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
cards/6S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
cards/7C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
cards/7D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
cards/7H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
cards/7S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
cards/8C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/8D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/8H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/8S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/9C.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
cards/9D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
cards/9H.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/9S.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
cards/AC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
cards/AD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
cards/AH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
cards/AS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
cards/JC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

BIN
cards/JD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
cards/JH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
cards/JS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
cards/KC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
cards/KD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
cards/KH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
cards/KS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
cards/QC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

BIN
cards/QD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
cards/QH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
cards/QS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
cards/cardBackRed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

BIN
cards/down_arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
cards/red_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
cards/up_arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

933
game.js

File diff suppressed because it is too large Load Diff