Giter Club home page Giter Club logo

state-name-game's Introduction

Hi ๐Ÿ‘‹, I'm Sanjeev

I'm a Student & Developer as well as Tech-Enthusiast!!

  • ๐ŸŒฑ Iโ€™m currently learning Python Data Structures and Algorithms

Connect with me:

sanjeev-kumar-0b3aa7245 sanjeevkumar48 @premchandrasing1 sanjeevkumar032

image image


  • Profile Views:
  • Profile Views

Languages and Tools:

css3 docker gcp git html5 illustrator javascript linux MySQL python


Top Langs

@SanjeevKumar's Holopin board

Sanjeev's GitHub stats

Sanjeev's Trophy

  • Star this repository

state-name-game's People

Contributors

sanjeev-kumar78 avatar

Stargazers

 avatar

Watchers

 avatar

state-name-game's Issues

Hint Feature

In File Game.py in line 42:
Required a hint feature that shows the text input box along with a random letter from the correct answer related to the user's incorrect input.

If anyone can suggest some ways to do that

while len(guessed_states) < 29:
    # Get the answer from the user
    answer_state = screen.textinput(
        title=f"{len(guessed_states)}/29 States Correct", prompt="What's another state's name?").title()

    # Check if the answer is correct
    if answer_state in data.State.to_list():
        guessed_states.append(answer_state)
        t = turtle.Turtle()
        t.hideturtle()
        t.penup()
        t.goto(int(data[data.State == answer_state].x),
               int(data[data.State == answer_state].y))
        t.write(answer_state, align="center", font=("Arial", 8, "normal"))
    else:
        if screen.textinput(title="Wrong Answer", prompt="Try Again! Enter Yes or No").title() == "Yes":
            continue
        else:
            print("Good Bye!")

            try:
                turtle.Screen().bye()
                break
            except:
                print("Exit turtle")
                break

        # Hint TODO: Add a hint feature

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.