GithubHelp home page GithubHelp logo

maxrothman / curdle-iii Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotrosedotnet/curdle-iii

0.0 1.0 0.0 761 KB

Baby's first programs, Mark III

License: Creative Commons Zero v1.0 Universal

Python 100.00%

curdle-iii's Introduction

Curdle-III

A Curses Wordle written in Python

This is my third attempt at an elegant, effective curses Wordle (Curdle) in Python.

I love the terminal, and curses, and am finally learning to program. I've learned a lot from my first two attempts, and would love to finalize something that I'm proud of with this one.

Some hopes for this attempt:

  • appropriate use of for loops, functions
  • clean, readable code
  • separation of processes
    • separate guess creation from guess printing
    • separate guess feedback from guess creation/printing
      • feedback in grid (letter in word/not in word/in the correct position)
      • feedback in keyboard representation of letters guessed
  • learn more!

It seems to be working! (20230418)

This Wordle implementation is presently culling from a dictionary meant for Scrabble. As such, the words kinda blow. Lots of esoteric garbage. If anybody wants to furnish a more appropriate dictionary, that'd be great.

Also, plurals are allowed here. I would need a more robust dictionary to remove plurals. Mine is just a list of words.

What's Special?

Besides it being exclusively in the terminal?

Baby, you can choose how many letters the word has! And how many guesses you get!

At the moment, that's done by editing the letter_count and try_count in the file. I'll add argument options later.

TODO:

  • Add title
  • Print correct word after losing
  • Add argument options
    • Letter count
    • Guess count
  • Offer [Q]uit at any time?

Aspirations for next projects:

  • make use of *args and **kwargs
  • use pad in curses to allow content beyond visible border
  • implement curses redrawing with window resizing
  • grok and use list/dict comprehension
  • cleaner code babyyyy

curdle-iii's People

Contributors

dotrosedotnet 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.