Skip to content

Commit 58605de

Browse files
committed
add spoken digits from AudioMNIST
1 parent 4d79218 commit 58605de

File tree

11 files changed

+7
-7
lines changed

11 files changed

+7
-7
lines changed

src/main/client/public/1.wav

64.4 KB
Binary file not shown.

src/main/client/public/2.wav

60.4 KB
Binary file not shown.

src/main/client/public/3.wav

63.9 KB
Binary file not shown.

src/main/client/public/4.wav

64.8 KB
Binary file not shown.

src/main/client/public/5.wav

75 KB
Binary file not shown.

src/main/client/public/6.wav

74.3 KB
Binary file not shown.

src/main/client/public/7.wav

74.6 KB
Binary file not shown.

src/main/client/public/8.wav

69.2 KB
Binary file not shown.

src/main/client/public/9.wav

66.9 KB
Binary file not shown.

src/main/client/src/feature/game/Game.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function Board({gameState, setGameState}) {
153153
}
154154
if (!howler.current) {
155155
howler.current = new Howl({
156-
src: ["/app/stone1.wav"],
156+
src: [base + "/stone1.wav"],
157157
onloaderror: (id, error) => {
158158
throw new Error(id + ": " + error)
159159
},

src/main/client/src/feature/lobby/OpenGames.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function OpenGame({game, onClick}) {
124124

125125
function ChallengeDialog({lobbyState, setLobbyState, acceptableGame, acceptDialogRef}) {
126126
let [isFlip, setFlip] = useState(false)
127-
let [handi, setHandi] = useState(1)
127+
let [handicap, setHandicap] = useState(1)
128128
let auth = useAuthStore(state => state.auth)
129129
let zAccept = getZindex(lobbyState, "accept")
130130
return (
@@ -140,7 +140,7 @@ function ChallengeDialog({lobbyState, setLobbyState, acceptableGame, acceptDialo
140140
body: JSON.stringify({
141141
game: acceptableGame?.game,
142142
flip: isFlip,
143-
handicap: handi === 1 ? 0 : handi,
143+
handicap: handicap === 1 ? 0 : handicap,
144144
}),
145145
})
146146
setLobbyState(closeLobbyPopup(lobbyState))
@@ -169,19 +169,19 @@ function ChallengeDialog({lobbyState, setLobbyState, acceptableGame, acceptDialo
169169
<div className="mt-2 text-black py-1">
170170
<div className="inline-flex">
171171
<span>Handicap:</span>
172-
<button type="button" disabled={handi === 1} onClick={() => setHandi(Math.max(1, handi - 1))}>
172+
<button type="button" disabled={handicap === 1} onClick={() => setHandicap(Math.max(1, handicap - 1))}>
173173
<IconContext.Provider value={{
174174
size: "1.25em",
175175
className: twJoin(
176176
"px-1",
177-
handi === 1 && "text-slate-400",
177+
handicap === 1 && "text-slate-400",
178178
)
179179
}}>
180180
<FaAngleLeft />
181181
</IconContext.Provider>
182182
</button>
183-
<span className="font-bold">{handi === 1 ? "0" : handi}</span>
184-
<button type="button" className="" onClick={() => setHandi(handi + 1)}>
183+
<span className="font-bold">{handicap === 1 ? "0" : handicap}</span>
184+
<button type="button" className="" onClick={() => setHandicap(handicap + 1)}>
185185
<IconContext.Provider value={{ size: "1.25em", className: "pl-1" }}>
186186
<FaAngleRight />
187187
</IconContext.Provider>

0 commit comments

Comments
 (0)