Coder Social home page Coder Social logo

wordle's Introduction

wordle's People

Contributors

oalders avatar saiftynet avatar

Stargazers

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

Watchers

 avatar

wordle's Issues

perl errors Use of uninitialized value

Getting lots of errors that look like this:

Use of uninitialized value $keyboard[3] in substitution (s///) at wordle.pl line 113, line 1.
Use of uninitialized value $keyboard[3] in substitution (s///) at wordle.pl line 113, line 1.
Use of uninitialized value $keyboard[4] in substitution (s///) at wordle.pl line 113, line 1.

Need this patch around line 110-ish

    foreach my $gc(split (//,$guess)){
        my $c=($answer=~/$gc/)?color("cyan"):color("red");
        my $r=color("reset");
  •           foreach my $kbRow (0..@keyboard){
    
  •           foreach my $kbRow (0..$#keyboard){
                      $keyboard[$kbRow]=~s/ $gc / $c$gc$r /;
              }
      }
    

Set colors for white terminal

Your color scheme assumes a black terminal. Suggest you put more colors into variables/array/hash (rather than hard-coding them) and allow/create a second array for white terminals.

add failure to statistics screen

I like the new statistics screen. Request that you add a count of games lost. It should line up with the single-digits that you already have. Perhaps L ? F ? X ?

re-using words?

I honestly don't know the game, so I don't know if this is a bug or correct behavior.

I play a game and start with a word "REACH" ... I eventually win the game, and answer "Want another game?" with "Yes".

REACH is now an invalid word because I've used it already.

All I have to do is never say "Yes", and always play a fresh new game, and the problem goes away, so I suspect it's a bug.

multiple uses of letter, only one in the word

Again, I honestly don't know if this is a bug, or just game play. I'm running version 0.05

The secret word is PESKY

I guess the word EASES. The first E is "right letter, wrong place". The first S is "right letter, right place." The second E and the second S are both unmarked.

In version 0.02 , the second E and the second S were both marked "right letter, wrong place".

I don't know which is your preferred / correct behavior. But it changed.

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.