Giter VIP home page Giter VIP logo

scrabble_dictionary's Introduction

Scrabble Word Finding Dictionary

A command-line scrabble dictionary made in Python.

Can take up to 7 characters, and up to 2 wildcards.

Valid characters: A-Z, '*' or '?'.

'scrabble.py' - raises exceptions when illegal characters written. Will exit the program and you will have to re-run.

'scrabble2.py' - uses loops to handle error checking, program stays running until valid input entered. Do not have to re-run program after input of illegal characters.

Utilizes the SOWPODS dictionary of words and has a scoring function to account for valid characters and wildcards.

How to use

Needs both checking and scoring functions, SOWPODS dictionary all to be located in the same folder.

In command line, enter directory containing scripts and dictionary and after entering "Python3" input the characters you have directly after the "scrabble.py" call:

Example: Python3 "scrabble.py" AB?CKAP

Example 2: Python3 "scrabble2.py" achiBK

NB: Is generally pretty fast, but 5 characters and 2 wildcards may take > 1 minute to run.

scrabble_dictionary's People

Contributors

sandzp avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.