Skip to content

Instantly share code, notes, and snippets.

View peatiscoding's full-sized avatar
🏠
Working from home

peatiscoding peatiscoding

🏠
Working from home
View GitHub Profile
@peatiscoding
peatiscoding / prisoner-by-kasidid.ts
Created October 15, 2023 02:41
Implementation of the Prisoner
import { shuffle } from 'lodash'
export interface Box {
/**
* Value written on top of the Box
*/
boxIndex: number
/**
* Value written inside the Box