Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

17 changes: 11 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
**/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
**/.next/
/out/

# production
Expand All @@ -24,9 +28,10 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel
Expand Down
1 change: 1 addition & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/old-cascade/*
8 changes: 0 additions & 8 deletions .vscode/settings.json

This file was deleted.

61 changes: 23 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,36 @@
# compsigh cascade
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Riddle one
## Getting Started

You are an old, senile CS professor walking around the twisting halls of Kalmanovitz.
First, run the development server:

**Input:** You're given a *2D* character array with `R`, `L`, and `#`. Starting from the top left, navigate using the current tile: `R` means right, `L` means left, and `#` means straight. Each turn is relative to your current direction.
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

**Output:** List every tile you visit from start to finish. You start and end on `#`.
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

### Example
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

**Input:**
```
# R R #
L L R #
R # # #
# L # #
```
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

**Output:**
```
#LLRRRL#L##
```
## Learn More

## Riddle two
You are given a jumbled sentence encoded with a Caesar Cipher and a 2D grid of words.
To learn more about Next.js, take a look at the following resources:

**Input:** A string `text` encoded with a Caesar Cipher, an integer `shift` representing the cipher shift, and a 2D list `grid` containing words.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

**Output:** The decoded sentence and the list of indices where each word of the decoded sentence appears in the grid.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

### Example
## Deploy on Vercel

**Input:**
```
text: "cqrb rb j cnbc"
shift: 9
grid: [
["hello", "test", "what"],
["cascade", "october", "is"],
["a", "this", "output", "compsigh"]
]
```
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

**Output:**
```
Decoded Text: "this is a test"
Indices: (2, 1), (1, 2), (2, 0), (0, 1)
```
TODO: @edward how do you want the output formatted?
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
52 changes: 0 additions & 52 deletions ROADMAP.md

This file was deleted.

145 changes: 0 additions & 145 deletions app/[...slug]/page.tsx

This file was deleted.

Loading