Skip to content

Instantly share code, notes, and snippets.

View BrianWasTaken's full-sized avatar
👄
Probably Studying

Brian BrianWasTaken

👄
Probably Studying
View GitHub Profile
@BrianWasTaken
BrianWasTaken / cards.ts
Created July 22, 2022 12:51 — forked from melmsie/cards.ts
Dank Memer Blackjack Command Files
import * as Constants from './constants';
const randomInArray = <T>(arr: readonly T[]): T =>
arr[Math.floor(Math.random() * arr.length)];
export interface Card {
suit: typeof Constants.SUITS[number];
face: typeof Constants.FACES[number];
baseValue: number;
};