Report For Project
Report For Project
ON
PYTHON PROGRAMMING
By
Disha Pandey
Guided by:
Mrs. Krati Kumari
Internship Supervisor
Date:
08/07/2024
Prof. Kamlesh Ahuja
HOD
Department of Artificial Intelligence and Data Science
HR INTERNPE
INTERNSHIP MENTOR DECLARATION
Date:
05/07/202
4
Acknowledgment
I would like to express my sincere gratitude to InternPe for the opportunity to
intern in the Python Development during 15 July 2024 to 11 August 2024. This
experience has been invaluable in enhancing my skills and understanding of
Python Programming.
I also appreciate the entire team for their warm welcome and collaboration,
which made my time here both enjoyable and enriching. I look forward to
applying what I‟ve learned as I continue my career journey.
Sincerely,
Disha Pandey
0704AD211014
---
About Company
The company may also provide resources such as resume building, interview
preparation, and career guidance to support students in their professional
development.
Abstract
Certificate 3
Internship mentor declaration 4
Acknowledgment 5
About company 6
Abstract 7
1. Chapter 1. Introduction 8
1.1 Introduction 8
1.2 Objective 8
1.3 Tools and Technologies used 9
1.2 Objective
4. Testing and Debugging: Develop skills in testing games for bugs, optimizing
performance, and ensuring a smooth user experience.
5. Version Control: Utilize version control systems (e.g., Git) for collaborative
development and project management.
7. Feedback and Iteration: Implement user feedback to improve game design and
functionality through iterative development.
The development of the game projects use of the following tools and
technologies:
TASK DESCRIPTION
TASK1:
OBJECTIVE:
Time Retrieval :Obtain the current time from the system clock.
time changes.
3. Format Time:
-Format the retrieved time into a readable digital clock format( hours, minutes,
seconds).
4. Display Time:
-Display the formatted time continuously to create a real-time updating digital
clock.
5. Optional: User Interaction:
-Consider adding user interaction features, such as setting alarms, adjusting
time formats, or providing additional functionalities.
6. Run Indefinitely:
-Use a loop to run the clock continuously, updating the display in real-time.
7. Error Handling:
-Implement error handling to manage unexpected issues, ensuring the
clock operates smoothly.
9. Documentation:
-Provide comments and documentation to explain the functionality of the code
for future reference or collaboration.
10. Testing:
-Test the digital clock under different scenarios to ensure accuracy and
reliability.
TASK2:
OBJECTIVE:
HOWTO PERFORM:
2. Player Turns:
- Allow two players to take turns marking empty spaces on the grid.
3. Winning Conditions:
- Define winning conditions by checking for three marks in arrow, column, or
diagonal.
4. Tie Detection:
- Implement logic to detect a tie when there are no empty spaces left on the
board.
5. User Interaction:
- Enable user interaction by allowing players to input their moves.
6. Feedback:
- Provide clear feedback after each move ,indicating if a player has won
,the game is a tie, or if it's the next player's turn.
7. User Interaction:
- Enable user interaction by allowing players to input their moves.
8.Feedback:
- Provide clear feedback after each move ,indicating if a player has won ,the
game is a tie, or if it's the next player's turn.
10. Validation:
- Validate moves to ensure players can only mark empty spaces and avoid illegal
moves.
OBJECTIVE:
2. Food Interaction: Implement the appearance of food for the snake to consume
and grow.
3. Collision Detection: Detects collisions between the snake and the game
boundaries or itself.
4. Score keeping: Keep track of the player's score based on the number of food
items consumed.
HOW TO PERFORM:
1. Grid Setup:
- Design a grid-based environment where the snake will move.
2. Player Control:
- Allow the player to control the snake's movement using arrow keys or a similar
input method.
3. Snake Movement:
- Implement logic for the snake to move continuously in the direction set by the
player.
4. Food Generation:
- Introduce food items randomly on the grid for the snake to consume and grow.
5. Collision Detection:
- Detects collisions between the snake and the game boundaries or itself.
- Implement game-over conditions when a collision occurs.
6. Snake Growth:
- Define the rules for the snake to grow longer after consuming food.
7. Score keeping:
- Keep track of the player's score based on the number of food items consumed.
8. Game Loop:
- Create a game loop that continually updates the game state, handles user
input, and redraws the screen.
9. Graphics(Optional):
- Optionally, enhance the game by adding graphical elements or animations.
13.Documentation:
- Provide comments and documentation to explain the functionality of
the code for future reference or collaboration.
TASK 4:
OBJECTIVE:
1. Grid Structure : Create a 6x7 grid to represent the Connect 4 game board.
2. Player Interaction: Allow two players to take turns dropping colored discs into columns.
3. Winning Condition: Define conditions for a player to win by connecting four discs
horizontally, vertically, or diagonally.
4. User Experience: Ensure a user-friendly experience with clear instructions,
valid move validation, and an option to replay.
HOWTO PERFORM:
1. Grid Setup:
- Create a 6x7 grid to represent the Connect4 game board.
2. Player Turns:
- Allow two players to take turns dropping colored discs into columns.
3. Disc Placement:
- Enable user interaction by allowing players to drop their discs into columns.
- Implement logic to place the disc in the lowest available position within the selected
column. .
4. Winning Conditions:
- Define winning conditions by checking for four consecutive discs in arrow,
column, or diagonal.
- Implement logic to detect and announce a winner.
5. Tie Detection:
- Implement logic to detect a tie when the grid is full with no Connect4.
6. User Interface:
- Provide clear feedback after each move ,indicating the current player, the
outcome of the move, and game status.
8. Validation:
- Validate moves to ensure players can only drop discs invalid columns and
avoid illegal moves.
-
CONCLUSION
Overall, this internship has been a crucial step in my career development. It has
equipped me with the technical skills and confidence to tackle complex programming
challenges and contribute effectively to any development team. I am grateful for the
mentorship and support provided by my colleagues at INTERNPE and look forward to
applying the knowledge and experience I have gained in my future endeavors.