This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Queue } from './queue'; // Queue data structure for breadth-first search | |
// Coordinate class to represent a point in the maze | |
class Coord { | |
constructor(public x: number, public y: number, public z: number) {} | |
} | |
// Helper function to check if a coordinate is within the bounds of the maze | |
function isValidCoord(maze: number[][][], coord: Coord): boolean { | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
Page, Text, Image, View, Document, StyleSheet, | |
createElement, pdf, PDFRenderer, | |
} from '@react-pdf/core'; | |
import blobStream from 'blob-stream'; | |
const Doc = () => ( | |
<Document> | |
<Page wrap={true}> |