forked from avinashkranjan/Amazing-Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from avinashkranjan:master #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
28e67ff
chat bot code added
varshith-Git d573698
Merge pull request #1159 from varshith-Git/chat_bot
avinashkranjan 57e31c3
Create README.md
naazkakria b080a6b
Improved face detection code added
naazkakria 5b0193b
Update README.md
naazkakria 167bae5
Added files to India-state-guessing-game
Souhardya-Ganguly 8781335
Merge pull request #1161 from naazkakria/master
avinashkranjan fb160f1
Create Full_map.PNG
Souhardya-Ganguly f66a591
Bump pillow from 8.2.0 to 8.3.2 in /Zoom-Auto-Attend
dependabot[bot] bb6c2e0
Bump pillow from 8.2.0 to 8.3.2 in /Text-Extract-Images
dependabot[bot] 43a9b3d
Merge pull request #1164 from avinashkranjan/dependabot/pip/Zoom-Auto...
avinashkranjan 1e02245
Merge pull request #1165 from avinashkranjan/dependabot/pip/Text-Extr...
avinashkranjan 9962dd7
Merge pull request #1163 from Souhardya-Ganguly/add-india-state-guess...
avinashkranjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
India-state-guessing-game/9671e6ba88f7b2ed4bea5941ffebf8ee (1).gif
23 changes: 23 additions & 0 deletions
India-state-guessing-game/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# India-state-guessing-game | ||
|
||
## Tutorial | ||
|
||
This can be used as an educational app to help Indian middle school students check whether they remember the names of all the states of India | ||
The game is played as follows:- | ||
1. You will be given a blank state map of India | ||
|
||
<img src = "https://github.com/Souhardya-Ganguly/India-state-guessing-game/blob/main/snapshots/Blank_map.PNG"></img> | ||
|
||
4. You will need to guess all the 30 states of India | ||
|
||
<img src = "https://github.com/Souhardya-Ganguly/India-state-guessing-game/blob/main/snapshots/Input%20terminal.PNG"></img> | ||
|
||
6. Once you guess the name of the state correctly, the name appears on the state | ||
|
||
<img src = "https://github.com/Souhardya-Ganguly/India-state-guessing-game/blob/main/snapshots/Input%20terminal.PNG"></img> | ||
|
||
8. If you cannot guess all the states correctly, the states that you could not guess is stored in a seperate .csv file | ||
|
||
|
||
|
||
|
47 changes: 47 additions & 0 deletions
India-state-guessing-game/main.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import turtle | ||
import pandas as pd | ||
screen = turtle.Screen() | ||
screen.title("Indian states game") | ||
#screen.setup(width=500, height=500) | ||
image = "9671e6ba88f7b2ed4bea5941ffebf8ee (1).gif" | ||
|
||
#def get_mouse_click_coor(x,y): | ||
# print(x,y) | ||
|
||
#turtle.onscreenclick(get_mouse_click_coor) | ||
|
||
data = pd.read_csv("states.csv") | ||
#print(data) | ||
all_states = data['States'].to_list() | ||
#print(all_states) | ||
guessed_states = [] | ||
|
||
screen.addshape(image) | ||
turtle.shape(image) | ||
|
||
#answer_state = screen.textinput(title= "Guess the state", prompt= "Name a state!") | ||
|
||
while len(guessed_states) < 30: | ||
answer_state = screen.textinput(title=f"{len(guessed_states)}/28 States Correct", | ||
prompt="What's another state's name?").title() | ||
if answer_state == "Exit": | ||
missing_states = [] | ||
for state in all_states: | ||
if state not in guessed_states: | ||
missing_states.append(state) | ||
new_data = pd.DataFrame(missing_states) | ||
new_data.to_csv("states_to_learn.csv") | ||
break | ||
if answer_state in all_states: | ||
guessed_states.append(answer_state) | ||
t = turtle.Turtle() | ||
t.hideturtle() | ||
t.penup() | ||
state_data = data[data.States == answer_state] | ||
t.goto(int(state_data.x), int(state_data.y)) | ||
t.write(answer_state) | ||
|
||
#print(guessed_states) | ||
#print(missing_states) | ||
|
||
turtle.mainloop() |
Binary file added
India-state-guessing-game/snapshots/Blank_map.PNG
Binary file added
India-state-guessing-game/snapshots/Full_map.PNG
Binary file added
India-state-guessing-game/snapshots/Input terminal.PNG
Binary file added
India-state-guessing-game/snapshots/Partial_map.PNG
30 changes: 30 additions & 0 deletions
India-state-guessing-game/states.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
States,x,y | ||
Andhra Pradesh,-73,-192 | ||
Arunachal Pradesh,285,127 | ||
Assam,240,72 | ||
Bihar,85,57 | ||
Chhattisgarh,-1,-28 | ||
Goa,-182,-184 | ||
Gujarat,-249,-13 | ||
Haryana,-132,139 | ||
Himachal Pradesh,-107,211 | ||
Jharkhand,55,8 | ||
Karnataka,-152,-205 | ||
Kerala,-129,-292 | ||
Madhya Pradesh,-96,-6 | ||
Maharashtra,-157,-89 | ||
Manipur,253,31 | ||
Meghalaya,193,53 | ||
Mizoram,228,-3 | ||
Nagaland,264,67 | ||
Odisha,55,-65 | ||
Punjab,-153,180 | ||
Rajasthan,-194,75 | ||
Sikkim,132,104 | ||
Tamil Nadu,-87,-280 | ||
Tripura,203,7 | ||
Uttar Pradesh,-34,88 | ||
Uttarakhand,-75,170 | ||
West Bengal,123,-14 | ||
Telengana,-71,-135 | ||
Jammu And Kashmir,-137,278 |
Binary file added
India-state-guessing-game/states.xlsx
Binary file not shown.
2 changes: 2 additions & 0 deletions
India-state-guessing-game/states_to_learn.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,0 | ||
0,Chhattisgarh |
2 changes: 1 addition & 1 deletion
Text-Extract-Images/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pytesseract==0.3.6 | ||
Pillow==8.2.0 | ||
Pillow==8.3.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
chat_bot/READ.ME.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
Hi...I am varshith. | ||
It is a chatbot purely written in python(3.5). | ||
...................................................................................................................................................................... | ||
...................................................................................................................................................................... | ||
Requirements: | ||
|
||
1. tkinter module. | ||
2.python3. | ||
3.some images that for "Exit","Refresh","Forward","Backward","logo" and "submit". | ||
4.A text file you may insert your commands. | ||
|
||
........................................................................................................................................................................ | ||
........................................................................................................................................................................ | ||
|
||
NOTE: | ||
*Dont leave Spaces (Spaces are not allowed)while texting Message |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.