Code Monkey home page Code Monkey logo

wordsearch's Introduction

Wordsearch

This repository contains two related projects to produce and verify searchword puzzles.

Riddle Generator

The Python script snakewordcreator.py generates word search puzzles from a word list read from stdin. Use it like e.g.

python3 ./snakewordcreator.py \
  --width 15 \
  --height 14 \
  --hop 1 \
  wordlist.txt

to produce a matrix 15 columns wide and 14 rows high. The 1 tells the script to choose a direct neighbor of the current cell to place the next letter; 2 would choose the one after the next, and so on.

If the script produces a TypeError: 'type' object is not subscriptable, you’re probably running an outdated Python version. Please consider updating your Python installation, or if not possible e.g. because you’re using Windows 7, check out the branch „python3.8“ (git checkout python3.8) to get an edition of the script that can be executed with Python 3.8 (and possibly older versions).

Basic Rules

  • The words are read horizontally and vertically: up and down and left and right, but not diagonally.

  • The direction can change within a word, even into the opposite direction.

  • Words can cross each other, including themselves.

  • And particularly nasty: you must think of the matrix as a torus, i.e. words can continue on the opposite edge.

  • Ä = AE, Ö = OE, Ü = UE, ß = SS

The rule set can be changed by command-line parameters (see snakewordcreator.py --help)

Word Checker

The Word Checker (see file check.html) is a single-page web application in which you can paste a matrix. You can then search the matrix for words.

Copyright

Copyright ©️ 2023 Oliver Lau, Heise Medien GmbH & Co. KG

wordsearch's People

Contributors

607011 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

crzysqrl

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.