Giter Site home page Giter Site logo

sbimochan / word-finder Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 4.0 40 KB

A CLI and Flask application that finds word from given letters.

Home Page: https://sbimochan.github.io/word-finder

License: MIT License

Python 100.00%
letters cli-application python flask puzzle-solver hactoberfest

word-finder's Introduction

Word Finder

A CLI and API application that finds word from given letters. Front end can be found at: https://github.com/sbimochan/sbimochan.github.io/tree/master/word-finder

Create virtual envirnment

$ virtualenv word-finder

Activate virtual environment

$ source word-finder/bin/activate

Install required packages

$ pip install -r requirements.txt

Run the application

$ python main.py

Usage

Add letters without space

atpar

Add size(Optional)

4

Run tests

pytest tests.py

Buy Me a Coffee at ko-fi.com

word-finder's People

Contributors

aviskarkc10 avatar basanta78 avatar sbimochan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

word-finder's Issues

Unhandled error when user inputs invalid error

You get the following error when user inputs an invalid number.

Traceback (most recent call last):
  File "main.py", line 45, in <module>
    main()
  File "main.py", line 42, in main
    get_permutation(letters, size)
  File "main.py", line 7, in get_permutation
    permutation = permutations(letter_list, length)
TypeError: Expected int as r

I would have solved this in my PR but wanted to see how you wanna go about it.

  1. End the program right away with an error message
  2. Continuously poll the user until they input valid number
  3. Go with length of string for size if wrong number is given

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.