Code Monkey home page Code Monkey logo

crosswordfish's Introduction

Crosswordfish

Next React

About โ–ช๏ธ Installation โ–ช๏ธ Roadmap โ–ช๏ธ Contributing

About

Crosswordfish screenshot

Crosswordfish is a haven for crossword enthusiasts. Here, you can play (ostensibly) random and unique crossword puzzles generated by AI. The puzzles are not stored on any server somewhere, they're made as soon as you hit Play.

The app features most of the UX features you'd expect from a digital crossword gameboard. You can reset the grid, reveal errors, and show solutions when you get stuck. And importantly, you can navigate the grid using your just your keyboard.

However, Crosswordfish is still very much an MVP and has a few limitations. The most obvious limitations are in how it generates crossword puzzles. Currently, the app is only able to generate freeform grid layouts due to the much greater complexity of generating American-style grid layouts. And by the same token, the app is only able to generate straight crossword clues, due to the creative complexity of generating cryptic (UK-style) clues.

If you're not sure what I mean by that, this Wikipedia article explains the different styles of crossword grids and clues and why certain types of grid/clue constraints might be challenging to work with.

Why?

Where else can you play crossword puzzles online without being bombarded by ads, on a puzzle grid that actually takes up more than a fifth of your viewport, and with new puzzles on-demand?

Built with

These are the main technologies used to build Crosswordfish. Have a look at the package.json file for a full list of dependencies.

(back to top)

Installation

First, get the things you'll need:

Prerequisites

  • Install Node.js
  • Install pnpm
    npm i -g pnpm
  • Obtain a valid OpenAI API key

    You may need to fund your account if you've run out of API tokens.

Getting started

Now, complete these steps:

  1. Clone the repo
    git clone https://github.com/peterjunpark/crosswordfish.git
  2. Install dependencies via pnpm
    cd crosswordfish
    pnpm i
  3. Create a .env file in the root directory and add your OpenAI API key.
    OPEN_AI_API_KEY= ...
    
  4. Start the development server
    pnpm dev

You should now be able to navigate to http://localhost:3001 and play some crosswords ๐Ÿ˜.

(back to top)

Roadmap

A running list of the main features to be added to Crosswordfish.

  • Add crossword grid generation
    • Support for American-style grids
    • Support for freeform crossword grids
  • Add crossword clues generation using GPT-3.5
    • Support for American-style crossword clues
    • Support for cryptic (British-style) crossword clues
  • Add keyboard controls
  • Add grid reset, word reveal, dark mode, and confetti.
  • Add ability to save, share, download, and print crosswords
  • Add crossword creation and publishing
  • Improve responsive design for mobile
  • Add PWA features
  • Improve performance (AI completion fetching, data parsing, grid generation)

(back to top)

Contributing

This project will likely not be updated. I intend to rebuild Crosswordfish using the lessons learned here.

The best way to build something is to build it twice. --- Someone

Feel free to fork the project for your own purposes.

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

crosswordfish's People

Contributors

peterjunpark avatar

Stargazers

 avatar Abdelkrim avatar

Watchers

 avatar

crosswordfish's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.