Code Monkey home page Code Monkey logo

wurdle's Introduction

Wurdle

Have you heard of the game Wordle? It was made by a software engineer by the name of Josh Wardle.

I was introduced to it by my parents. They'd been playing it a lot. It isn't too hard to recreate and you can do it in an afternoon. One of the most time-consuming parts was trying to figure out how to add the words. I tried many different ways, even using a pip package called Random-Word. Although I might use this package another time, I didn't like the words that it was spitting out. I ended up going on Google and searching for "five letter words." I then made a curated list of five letter words. 117 words. It took about 20 minutes to get the 117 words. You can see my final code in src/wurdle.py.

Usage

usage: wurdle.py [-h] [-t TRIES]

options:
  -h, --help            show this help message and exit
  -t TRIES, --tries TRIES
                        change the amount of tries you can have (from 1 to 20)

Features

  • Set number of tries with command-line flag
  • Shows what letters you have guessed wrong
  • Tells you if you enter a word that is not five letters long.

Running

python3 wurdle.py [-t TRIES]

or

chmod +x wurdle.py
./wurdle.py [-t TRIES]

Dependencies

pip install colorama pyfiglet

You might need to use pip3 instead of pip.

wurdle's People

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.