diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..4d3d72d
Binary files /dev/null and b/.DS_Store differ
diff --git a/Kick-Off.md b/Kick-Off.md
deleted file mode 100644
index f784834..0000000
--- a/Kick-Off.md
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-# Build your own game!
-
-## Content
-- [Project Description](#project-description)
-- [Games](#games)
-- [Project Goals](#project-goals)
-- [Requirements & Deliverables](#requirements-&-deliverables)
-- [Mentoring](#mentoring)
-- [Schedule](#schedule)
-- [Presentation](#presentation)
-
-## Project Description
-In this project, you will create your first software!
-You are tasked with creating a **game** that interacts with the user, using functions and other basic python resources you have learned during the week. Your game will be able to take an input from the user and provide an output.
-
-You will also present your game to the class.
-
-## Games
-You will be assigned one of the following games:
-
-* [Strong Random Password Generator](https://strongpasswordgenerator.com/)
-* [Guess The Number](https://www.funbrain.com/games/guess-the-number)
-* [Hangman](https://www.coolmathgames.com/0-hangman)
-* [Message Encryption & Decryption](https://www.base64decode.org/)
-* [Mastermind](https://www.webgamesonline.com/mastermind/)
-* [Tic Tac Toe](https://www.google.com/search?q=tic+tac+toe&oq=tic+tac+toe&aqs=chrome..69i57j0l5.1876j0j4&sourceid=chrome&ie=UTF-8)
-* [Blackjack](https://bicyclecards.com/how-to-play/blackjack/)
-* [Soldier & Dice (Risk)](https://en.wikipedia.org/wiki/Risk_(game)#Attack_and_defense)
-
-## Project Goals
-During this project you will:
-* Fork and manage your own git repository.
-* Build your own code from scratch.
-* Put into practice the basic python concepts learned during the week.
-* Get used to public presentations.
-
-## Requirements & Deliverables
-The **mandatory** requirements that this project needs to satisfy are:
-* The project must be planned. That is why creating a Kanban board is important. You can either do it manually (e.g. with post-its) or use an online tool like Trello. You can find a template for Trello [here](https://trello.com/b/pc2CNZTo/project-1-build-your-own-game). Remember that you **CAN'T CODE** until your project is planned.
-* Your repository must be clean and organized; this means that it must include a *.gitignore* file and a README file and also have a functional file structure. You can easily create a *.gitignore* template [here](https://www.toptal.com/developers/gitignore).
-* Your code must include at least one function.
-* The project needs to be presented to your colleagues on the day of the presentation.
-
-The **mandatory** deliverables that you must turn in are:
-* Link to the repository you used while working on your project. The repository must include all the files you used to build your game. Remember to commit often to avoid trouble in case you mess up: this means more than 1 commit!
-* Link to Trello or picture of your Kanban Board. Include the link or the picture in the README file.
-
-The **deadline** to turn in the deliverables is right before the project presentations.
-
-## Mentoring
-One of the TAs will be your mentor!
-
-Your mentor will:
-* Keep track of your project in general terms. Your mentor will be the second person that knows more about the project, after you.
-* Check if you are following your plan: are you keeping up with your tasks and deadlines? Do you have any obstacles blocking you?
-* Help/support you with specific questions.
-
-Your mentor is **not** meant to:
-* Know everything.
-* Be your manager. You have to be responsible of your own tasks!
-
-## Schedule
-
-**Please note** that the following schedule is simply a guideline. Feel free to organize your work as you see fit.
-
-**Wednesday**
-* Choose the game that you are going to code.
-* Plan your project. Remember that we are providing you with a Trello [template](https://trello.com/b/pc2CNZTo/project-1-build-your-own-game). Remember that you **CAN'T CODE** until your project is planned.
-* Fork the repository and edit the README overview. You can find a [template](https://github.com/ta-data-bcn/Project-Week-1-Build-Your-Own-Game/blob/master/your-project/README.md) for your README file in this repository. Remember to keep the README up-to-date.
-* Once you finish, start coding! Remember to use functions.
-
-**Thursday**
-* Finish the coding and possibly check for bugs in the program (e.g. check what happens if the player gives unexpected inputs to the program).
-* In the evening, start preparing the slides for Friday's presentation.
-
-**Friday**
-* Presentation time at **3PM**! There will be a 15-minute break during the presentations.
-
-## Presentation
-You will have **3 minutes** to present your project to the class and then **2 minutes** for Q&A.
-
-The slides of your presentation must include the content listed below and a demo of your game:
-
-* Title of the project + Student name
-* Description and rules of your game
-* Workflow
-* Challenges you encountered during the process
-* Learnings
-* Possible future improvements
-* Demo of the game (remember to save time for it)
-
-Tip: you have only 3 minutes for this presentation so keep it simple!
diff --git a/your-project/Presentation.pdf b/your-project/Presentation.pdf
new file mode 100644
index 0000000..f1a0013
Binary files /dev/null and b/your-project/Presentation.pdf differ
diff --git a/your-project/README.md b/your-project/README.md
index 2a8493d..c6085fc 100644
--- a/your-project/README.md
+++ b/your-project/README.md
@@ -1,9 +1,10 @@
-# Title of Your Project
-*[Your Name]*
+# Hangman game
+*[Ayub Pathan]*
-*[Your Cohort, Campus & Date]*
+*[Data Analytics Cohort, Remote & 03.06.2021]*
+*[Teacher : Ignacio; TA: Raul]*
## Content
- [Project Description](#project-description)
@@ -13,22 +14,26 @@
- [Links](#links)
## Project Description
-Write a short description of your project. Write 1-2 sentences about the game you chose to build and why.
+* This short project demonstrates how to create & play hangman game.
+* User is asked to guess the secret word to save hangman being hanged.
## Rules
-Briefly describe the rules of the game.
+* Guess word is created randomly.
+* User has to provide a letter to fill in blanks to complete the word.
+* Totally assigned lives/turns are 5 (as defined in this game).
+* Keep guessing the word until user succeed.
+* If user guess the word correctly, user will win.
+* If user runs out of turns, then hangman will be hanged and game will be over!
-## Workflow
-Outline the workflow you used in your project. What are the steps you went through?
-
-## Organization
-How did you organize your work? Did you use any tools like a kanban board?
-What does your repository look like? Explain your folder and file structure.
+## Workflow
+* Selection of project
+* Project planning
+* Scrolling through resources to know more about the game
+* Writing codes
## Links
Include links to your repository, slides and kanban board. Feel free to include any other links associated with your project.
-[Repository](https://github.com/)
-[Slides](https://slides.com/)
-[Trello](https://trello.com/en)
+[Repository](https://github.com/ayubpathan2021/Project-Week-1-Build-Your-Own-Game/tree/master/your-project)
+[Slides](/presentation.pdf/)
diff --git a/your-project/main.ipynb b/your-project/main.ipynb
new file mode 100644
index 0000000..df1346c
--- /dev/null
+++ b/your-project/main.ipynb
@@ -0,0 +1,297 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "54a156ae",
+ "metadata": {},
+ "source": [
+ "# Hangman"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a27aee68",
+ "metadata": {},
+ "source": [
+ "##### Code written for a selected project - Hangman - from a given list of proejcts. I have no any particular reason why I have selected this game but found it could be easy as a good start for a beginner to long or lets say intensive coding exercises. \n",
+ "\n",
+ "* \"This code was written again after writing my first code which I had a lot of problem to run it successfully\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ea3aab4d",
+ "metadata": {},
+ "source": [
+ "#### Creating dictionary of hangman to display for various stages of game 0 to 7 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 48,
+ "id": "829b6347",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "#%run images.ipynb import Add \n",
+ "#tried to use to import images but \n",
+ "# i dont know why it didnt work. It was always giving an error & was annoyin\n",
+ "#so simply I pasted all my figures of hangman in display dictionary!\n",
+ "\n",
+ "display = {\n",
+ " \n",
+ "0:\"\"\"\n",
+ "-------\n",
+ "| \n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\"\"\",\n",
+ "\n",
+ "1:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\"\"\",\n",
+ "\n",
+ "2:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\"\"\",\n",
+ " \n",
+ "3:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "| |\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\"\"\",\n",
+ " \n",
+ "4:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "| \\|/\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\"\"\",\n",
+ "5:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "| \\|/\n",
+ "| |\n",
+ "| \n",
+ "|\n",
+ "\"\"\",\n",
+ " \n",
+ "6:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "| \\|/\n",
+ "| |\n",
+ "| / \\\n",
+ "\"\"\",\n",
+ "\n",
+ "7:\"\"\"\n",
+ "-------\n",
+ "| |\n",
+ "| 0\n",
+ "| /|\\\n",
+ "| |\n",
+ "| / \\\n",
+ "\"\"\"\n",
+ "}\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b9bae81f",
+ "metadata": {},
+ "source": [
+ "#### Defining list of words with various words related to first compact week1 bootcamp:)\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "f44c7ca8",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "\n",
+ "list_of_words = ['ironhack', 'bootcamp', 'new', 'experience', 'amazing', 'green', 'yellow', 'guess', 'fight', 'learn', 'never', 'give', 'up', 'devastated', 'active', 'again', 'sometimes', 'full', 'energy', 'happy', 'thinking', 'confused', 'writing', 'not', 'understanding', 'trying', 'hard', 'practising', 'sitting', 'long', 'time', 'small', 'break', 'let', 'refresh', 'join', 'again', 'boost', 'with', 'coffee', 'sunny', 'outside', 'summer', 'but', 'must', 'work', 'learn', 'keep', 'enjoying', 'because', 'all', 'will', 'charming', 'proud', 'feeling', 'new word', 'berlin','madrid', 'barcelona', 'miami','amsterdam', 'place', 'campus', 'remote', 'choose', 'data analysis', 'web', 'development', 'programing', 'python', 'javascript', 'lambda', 'function', 'define', 'defination', 'import', 'random', 'list', 'dictionary', 'reduce', 'induce', 'filter', 'addition', 'substraction', 'factorial', 'kata', 'codewars', 'lecture', 'command', 'string', 'decision', 'making', 'project', 'planning', 'jupyter', 'week', 'hackathlon', 'career', 'recruitment', 'job','new challenge', 'new task', 'new people', 'new team', 'approach', 'logic', 'success', 'party']\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 51,
+ "id": "50845960",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Enter your name h\n",
+ "Welcome h to play Hangman game! \n",
+ "Try to guess the hidden word a\n",
+ "\n",
+ "-------\n",
+ "| \n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\n",
+ "A _ A _ _\n",
+ "\n",
+ "\n",
+ "You have 7 tries left!\n",
+ "Try to guess the hidden word again\n",
+ "\n",
+ "-------\n",
+ "| |\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "|\n",
+ "\n",
+ "A G A I N\n",
+ "\n",
+ "\n",
+ "You have 6 tries left!\n",
+ "Nice of you! You have nailed it\n"
+ ]
+ }
+ ],
+ "source": [
+ "import random\n",
+ "\n",
+ "#which variables I need\n",
+ "#1 word : list of word from which word is randomly generated.\n",
+ "#2 guessmade : user will keep guessing word and this variable will be updated if the word is matching generated word\n",
+ "#3 guess as user input. User will be asked to give input as this is consider as guess\n",
+ "#4 win: this boolean will be used as False for initial condition to start the game and if\n",
+ "# win will be True then game will be over and print statment will be recalled\n",
+ "\n",
+ "word = random.choice(list_of_words).upper() # randomly generating word & capitalising\n",
+ "#word = word.upper() # capitalising word\n",
+ "\n",
+ "'''variable guess (which has to be guessed by user) which is shown by \"_ _ _ _ _ _ _ _\" which should be equal\n",
+ " length of the word and then we multiply it by _.\n",
+ "'''\n",
+ "guessmade = list(len(word)*'_')\n",
+ "#just to print to see if given list matches to the word length!\n",
+ "#print(guess)\n",
+ "#defining initial condition as boolean if game win\n",
+ "win = False\n",
+ "turn = 7\n",
+ "\n",
+ "#Welcoming user and asking to enter name to start the game! \n",
+ "name = input(\"Enter your name \")\n",
+ "print(\"Welcome \" + name + \" to play Hangman game! \")\n",
+ "\n",
+ "\n",
+ "def check(letter, word):\n",
+ " '''\n",
+ " This function check if the letter guessed by user is in hidden \n",
+ " word or not and it is in the hidden word, then it should show\n",
+ " that letter updated in the list of guessmade list instead of _\n",
+ " '''\n",
+ " for i in range (0,len(word)):\n",
+ " letter = word[i]\n",
+ " if guess == letter:\n",
+ " guessmade[i] = guess\n",
+ " if '_' not in guessmade:\n",
+ " return True\n",
+ " else: \n",
+ " return False\n",
+ "\n",
+ "def status():\n",
+ " '''\n",
+ " This function is defined to know the status of the turns left with your\n",
+ " '''\n",
+ " print(display[7-turn]) # displaying hangman as per turn left\n",
+ " print(' '.join([str(i) for i in guessmade]))\n",
+ " print('\\n')\n",
+ " print(\"You have\", turn,\"tries left!\")\n",
+ " \n",
+ "#creating while loop statement, because it will be repeatitive and hence while will be the best option:\n",
+ "while win == False and (turn>0):\n",
+ " status\n",
+ " guess = input(\"Try to guess the hidden word \") # guess as a user input \n",
+ " guess = guess.upper() # capitalising the guess\n",
+ " \n",
+ "#defining loop: if guess is equal to randomly generated word, then we decpare gameWin as true\n",
+ " if guess == word: \n",
+ " win = True\n",
+ " guessmade = word\n",
+ " if len(guess) == 1 and guess in word:\n",
+ " win = check(guess, word)\n",
+ " else:\n",
+ " turn = turn-1\n",
+ " status()\n",
+ "\n",
+ "if win:\n",
+ " print(\"Nice of you! You have nailed it\")\n",
+ "else:\n",
+ " print(\"Its pity you ran out of turns and YOU let the goodman die! \\n The secret word was\", word)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "55a74ad1",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "113305e1",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.8.8"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}