Giter VIP home page Giter VIP logo

guess-that-lang's Introduction

Hi ๐Ÿ‘‹, I'm Lioness100


Github Stats Most Used Languages

guess-that-lang's People

Contributors

lioness100 avatar moskalyka avatar sanj0 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guess-that-lang's Issues

dark_light match statement bug

When running on some machines, this error is shown when running:

thread 'main' panicked at 'no entry found for key', /home/desktop/.cargo/registry/src/github.com-1ecc6299db9ec823/guess-that-lang-1.0.3/src/terminal.rs:63:20

That trace resolves to here which shows that this function isn't returning a valid string. If the get_theme call is replaced by a string literal of either theme, it works.

// Both of the following work.
themes.themes["Monokai Extended"].clone(),
themes.themes["Monokai Extended Light"].clone(),

The get_theme function is copied from the example in dark-light's README. This error also doesn't appear on my personal machine, so I can't quite debug it.

rust-lang/rust#28606 - This might be related.

Always map keys to the same language

If you would always map keys to the same language it would remove the extra step of looking down on the options and you could focus on the code.
Great game btw :)

One-line snippet

I don't have a screenshot, but I got a one-line snippet and could only get +10 points even if I knew the answer
(it was powershell)

terminal colors on light background are not good

Light gray on white is a little rough. I think there may also be some white-on-white. Need to set the code highlight colors to medium luminance by default and/or provide an argument to indicate light vs dark terminal.

Will not compile on Linux

Turns out ansi_term::enable_ansi_support() is available only on Windows. Change the imports in terminal.rs to

use ansi_term::{
    ANSIGenericStrings,
    Color::{self, Fixed, RGB},
};
#[cfg(windows)]
use ansi_term::enable_ansi_support;

Repeating code blocks

When playing the game, I often encounter repeated code blocks, especially a lot of Javascript, e.g. a startgame function I get at least once per game, sometimes twice in a row. Is this intended?

Edit: I did input my GH token

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.