saiftynet / wordle Goto Github PK
View Code? Open in Web Editor NEWA command Line wordle clone
License: GNU General Public License v2.0
A command Line wordle clone
License: GNU General Public License v2.0
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 /;
}
}
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.
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 ?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.