<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Komal Gilani</title>
    <description>The latest articles on DEV Community by Komal Gilani (@komalgilani).</description>
    <link>https://dev.to/komalgilani</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1135939%2F3b112866-4ddd-4adb-9862-1615afa81bd1.jpeg</url>
      <title>DEV Community: Komal Gilani</title>
      <link>https://dev.to/komalgilani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/komalgilani"/>
    <language>en</language>
    <item>
      <title>Diversity and Inclusivity in the Hiring Process</title>
      <dc:creator>Komal Gilani</dc:creator>
      <pubDate>Mon, 28 Aug 2023 16:16:26 +0000</pubDate>
      <link>https://dev.to/komalgilani/tell-me-about-youself-4gfn</link>
      <guid>https://dev.to/komalgilani/tell-me-about-youself-4gfn</guid>
      <description>&lt;p&gt;Not too simple, Not too scripted, just on point , how less personal or how much formal . You are never sure what is expected of you. I feel we get lost in the process of preparation and become unaware of what to de say in the time. I wonder what if interviews could be more like discussions than stressing other person's out. While there are jobs that require high stress management but assessment performance under stress has went too far in hiring process now adays. It can negatively impact someone's abilities to outperform especially person with certain disability.  How can we ensure diversity and inclusivity with assuming accomodating requests? I recently had interviews with a very reputable organzation that has no inclusivity practices in their hirirng process. I suffer from an autoimmune disease which affects my speech and cognition (brain fog) when i have high flares. I feel misunderstood or stupid at time when words get mixed or i can't evenn form a sentence. Though it is challanging but i have abilities to work and i have skills with continous passion to grow and learn. I would continue to advocate for diversity and inclusivity in workspace. I hope better days will follow.✌🏼  &lt;/p&gt;

</description>
      <category>tellmeaboutyourself</category>
      <category>job</category>
      <category>journey</category>
      <category>thoughts</category>
    </item>
    <item>
      <title>Python Day 7 Challange: Hangman Game</title>
      <dc:creator>Komal Gilani</dc:creator>
      <pubDate>Thu, 10 Aug 2023 09:58:33 +0000</pubDate>
      <link>https://dev.to/komalgilani/python-day-7-challange-hangman-game-2m75</link>
      <guid>https://dev.to/komalgilani/python-day-7-challange-hangman-game-2m75</guid>
      <description>&lt;p&gt;Hangman Game Combines word knowledge, deduction and strategy.&lt;br&gt;
In this game, one player think of a word and other player has to guess the word. In this game, only  predetermined number of incorrect guesses are allowed. For every incorrect guess, you end up taking a life a away from the man. He has only limited number of lives. After all incorrect guesses, man is hanged from gallow and player lose.&lt;br&gt;
Here is the description of hangman program:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Word Selection : Word is chosen from predetermined list and kept secret from player.&lt;/li&gt;
&lt;li&gt;Word Display : Each letter of Word is displayed using underscore, indicating length of the chosen word&lt;/li&gt;
&lt;li&gt;Guess Game: The player guess a letter they think might be in the word. If the guess in the word, all the occurance of that letter is displayed in the correct position. if the guess is incorrect, one life is deducted from gallow figure and draw the remaining part of it and display. &lt;/li&gt;
&lt;li&gt;Win or Lose.   Guessing continous until player guess all letter correctly or make too many incorrect guesses. If player guess the word in first attempt or make all correct guess, he wins and saves the gallow man. Otherwise gallow man is hanged and player lose.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Hangman Game in Python 3 --- Komal Gilani 

import random
import hangman_words
import hangman_art


def playagain():
    print('Do you want to play again? (yes or no)')
    return input().lower().startswith('y')


# TODO-1: - Update the word list to use the 'word_list' from hangman_words.py
# Delete this line: word_list = ["ardvark", "baboon", "camel"]



# TODO-3: - Import the logo from hangman_art.py and print it at the start of the game.


# Create blanks



def start_game(chosen_word: object, lives: object,end_of_game) -&amp;gt; object:
    word_length = len(chosen_word)
    while not end_of_game:
        guess = input("Guess a letter: ").lower()

        # TODO-4: - If the user has entered a letter they've already guessed, print the letter and let them know.
        if guess in display:
            print(f"You've already guessed {guess}")
        if guess == chosen_word:
            end_of_game = True
            print("You win")
            return  end_of_game
        # Check guessed letter
        for position in range(word_length):
            letter = chosen_word[position]
            # print(f"Current position: {position}\n Current letter: {letter}\n Guessed letter: {guess}")
            if letter == guess:
                display[position] = letter

        # Check if user is wrong.
        if guess not in chosen_word:

            # TODO-5: - If the letter is not in the chosen_word, print out the letter and let them know it's not in the word.
            lives -= 1
            print(f"You guessed {guess}, that's not in the word, you lose a life".format(guess))
            if lives == 0:
                end_of_game = True
                print("You lose.")
                return end_of_game

        # Join all the elements in the list and turn it into a String.
        print(f"{' '.join(display)}")

        # Check if user has got all letters.
        if "_" not in display:
            end_of_game = True
            print("You win.")
            return end_of_game

        # TODO-2: - Import the stages from hangman_art.py and make this error go away.
        print(hangman_art.stages[lives])



# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    end_of_game = False
    chosen_word = random.choice(hangman_words.word_list)
    display = ['_' for x in range(len(chosen_word))]
    lives = 6
    print(hangman_art.logo)
    # Testing code
    print(f'Are you Ready??')
    end_of_game= start_game(chosen_word,lives,end_of_game)
    if end_of_game:
        if playagain():
            end_of_game = False
            chosen_word = random.choice(hangman_words.word_list)
            display = ['_' for x in range(len(chosen_word))]
            print(f'Start again -- The word is different??')
            end_of_game = start_game(chosen_word,lives,end_of_game)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Python 100 Days Challange: Day 6 Project Reeborg Hurdle 4 Game</title>
      <dc:creator>Komal Gilani</dc:creator>
      <pubDate>Wed, 09 Aug 2023 13:25:21 +0000</pubDate>
      <link>https://dev.to/komalgilani/python-100-days-challange-day-6-project-reeborg-hurdle-4-game-21b2</link>
      <guid>https://dev.to/komalgilani/python-100-days-challange-day-6-project-reeborg-hurdle-4-game-21b2</guid>
      <description>&lt;p&gt;In the "Hurdle Race 4" challenge, Reeborg "Robort" faces the task of reaching a destination labeled as "at_goal" by navigating through a series of walls. The height of these walls remains unknown, requiring Reeborg to continuously move and perform jumps to overcome each obstacle. To successfully complete the challenge, there are specific rules and strategies that can guide Reeborg toward its destination:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Sequential Movement and Jumps: Reeborg needs to employ a strategy of moving and jumping across each wall until it finally reaches the designated goal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Condition Checking for Movement and Jumps: When executing movement and jumps, Reeborg should perform condition checks to determine whether the path ahead or the wall in front is clear. This allows Reeborg to make informed decisions on when and how to move forward.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def turn_around():
    turn_left()


def turn_right():
    turn_left()
    turn_left()
    turn_left()

def move_and_jump_until_done():
    turn_left()
    while wall_on_right():   
        move()                # to move up 
    turn_right()
    move()
    turn_right()
    while front_is_clear():   #to move down
        move()
    turn_left()

while not at_goal():
    if wall_in_front():         # keep moving and jumping if there is wall
        move_and_jump_until_done()
    else:          # is there is no wall , just 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fncfabcm72erjskuzbel.png)move
        move()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reeborg</category>
      <category>100daysofcode</category>
      <category>python</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Python 100 Days Challange: Day 6 Project Reeborg Maze Game</title>
      <dc:creator>Komal Gilani</dc:creator>
      <pubDate>Wed, 09 Aug 2023 10:21:48 +0000</pubDate>
      <link>https://dev.to/komalgilani/python-100-days-challange-day-6-project-reeborg-maze-game-ggb</link>
      <guid>https://dev.to/komalgilani/python-100-days-challange-day-6-project-reeborg-maze-game-ggb</guid>
      <description>&lt;p&gt;Expanding upon the concepts we covered on Day 6 of the 100-day Python course, where we delved into fundamental concepts like if/else conditions, loops (both for and while), and function declarations, we now have the opportunity to apply this knowledge to create an interactive game using Reeborg's World and Python. On Day 6, we honed our skills by crafting code for challenges such as Hurdle 1-4 and a complex Maze, culminating in a comprehensive final project.&lt;/p&gt;

&lt;p&gt;To embark on this game-building journey with Reeborg's World, we must first establish a foundation by defining essential functions that will enable Reeborg the Robot to navigate through its environment effectively:&lt;/p&gt;

&lt;p&gt;Turning 90 Degrees: We can command Reeborg to turn 90 degrees using the turn_left() function.&lt;/p&gt;

&lt;p&gt;Turning Right: Achieving a right turn can be accomplished by executing the turn_left() command three times.&lt;/p&gt;

&lt;p&gt;Moving Forward: To make forward progress, we employ the move() function.&lt;/p&gt;

&lt;p&gt;Conditional Checks: Utilizing if/else conditions, we can determine whether the path ahead is clear or obstructed by a wall. We can also identify if there's a wall to the right.&lt;/p&gt;

&lt;p&gt;While Loop: Incorporating a while loop allows us to execute instructions repeatedly until a specific goal is attained, ensuring that Reeborg reaches its destination as required by the game's mechanics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here is the code for the Maze Project:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`def turn_around():
    turn_left()


def turn_right():
    turn_left()
    turn_left()
    turn_left()

def maze():
    if right_is_clear():
        turn_right()
        move()
    elif front_is_clear():
        move()
    else:
        turn_left()

def jump_until():    # for hurdle 4 game --to handle dyanmic wall size ...change loop to try give it a try
    turn_left()
    while wall_on_right():
        move()
    turn_right()
    move()
    turn_right()
    while front_is_clear():
        move()
    turn_left()

while not at_goal():  #maze game
   maze()

`

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>journalentries</category>
      <category>python</category>
      <category>reeborg</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
