Summer Internship Report
Summer Internship Report
on
Submitted by:
Mritunjay Kumar
Enrolment No. A505145023022
Mritunjay Kumar
A505145023022
ii
Amity Institute of Information Technology
Amity University, Haryana
Certificate
This is to certify that the work in the Summer Internship report entitled “Hit Number Game”
by Mritunjay Kumar bearing A505145023022 is a bona fide record of Summer internship
work carried out by her under my supervision and guidance in partial fulfilment of the
requirements for the award of the degree of Masters of Computer Applications in the Amity
Institute of Information Technology, Amity University Haryana, Gurgaon. Neither this project
nor any part of it has been submitted for any degree or academic award elsewhere.
Date: -
Signature of Guide
Head of Department
Department of Computer Science
Amity Institute of Information Technology
Amity University Haryana, Gurgaon
iii
ACKNOWLEDGEMENT
Acknowledgement is not a mere obligation but an epitome of humility and ineptness to all
those who have helped in the completion of this Seminar Report. I am thankful to
Dr. Akshay Mudgal, for his constant guidance and encouragement provided in this endeavour.
I also thank my parents for their continued support, understanding and patience without their
support and understanding this endeavour would never been fruitful. I also thank all my friends
for helping me out in completing this Summer Internship Report and helping me in solving
various problems encountered during the progress of this Summer Internship Report.
Mritunjay Kumar
A505145023022
iv
Abstract
The goal of the summer internship project, presents the design and development of a Hit
Number Game created using HTML, CSS, and JavaScript. The objective of the game is for
the player to click on randomly generated numbers displayed on the screen within a limited
time. The game challenges the player's speed and accuracy, rewarding points for hitting the
correct numbers and penalizing for missing or clicking on incorrect ones.
HTML was employed to structure the game’s interface, creating a canvas for the dynamic
number display and setting up the user controls. CSS was utilized to style the game interface,
making it visually appealing and ensuring responsiveness across various devices. JavaScript
was the core technology used to implement the game’s logic, such as generating random
numbers, detecting user clicks, updating the score, and managing the countdown timer.
The report details the game in brief yet exploratory detail, emphasizing JavaScript’s use of
DOM (Document Object Model) manipulation, event listeners, and timing functions like
setInterval() and clearInterval() to manage game states. Key challenges, including managing
real-time updates and ensuring smooth animations, are also discussed. Additionally, potential
improvements, such as adding levels, varying game difficulty, and implementing player
performance tracking, are proposed for future iterations of the game.
v
List of Figures
vi
Table of Contents
Declaration .......................................................................................................................... ii
Certificate ........................................................................................................................... iii
Acknowledgement ............................................................................................................... iv
Abstract ................................................................................................................................ v
List of Figures ...................................................................................................................... vi
List of Contents ................................................................................................................... vii
Chapter 1: Introduction .................................................................................................... 10
1.1 Context & Background ............................................................................................. 10
1.2 The Project's Goal ..................................................................................................... 10
1.3 Technologies Employed ........................................................................................... 10
1.4 Project's Scope .......................................................................................................... 11
1.5 Pertinence to Internship Objectives ........................................................................... 11
1.6 Structure of the Report .............................................................................................. 11
Chapter 2: Aim and Objective.......................................................................................... 12
Chapter 3: Technologies Used in Hit Number Game ...................................................... 13
3.1 HTML and CSS ........................................................................................................ 13
3.2 JavaScript ................................................................................................................. 14
Chapter 4: Design and Implementation ........................................................................... 16
4.1 Design Phase ............................................................................................................. 16
4.2 Implementation ......................................................................................................... 16
Chapter 5: Result .............................................................................................................. 22
Chapter 6: Conclusion and Future Scope ........................................................................ 25
References.......................................................................................................................... 26
vii
Chapter 1
INTRODUCTION
Project Selection: The Hit Number Game is often selected as a project in introductory
web development courses, coding boot camps, and self-learning tracks for several
reasons:
Beginner-Friendly
Hands-On Learning
Immediate Feedback
Significance : The Hit Number Game holds significance in several domains, ranging
from educational value to technical development and user engagement.
Possibility for Learning: The project offers a practical learning opportunity in web
development by teaching fundamental skills in HTML, CSS, and JavaScript, such as
event handling, DOM manipulation, and random number generation. It also enhances
problem-solving abilities through input validation, conditional logic, and user interface
design, making it a valuable project for both beginners and those seeking to refine their
programming logic. Industry Relevance: The knowledge and abilities gained from this
project are extremely applicable to the latest developments in the AI, web development,
and responsive design fields.
HTML, CSS, and JavaScript were used in the project's construction. JavaScript was chosen
because of its robust community support, which facilitates scalability and maintenance, and its
10
capacity to handle dynamic content effectively, while HTML and CSS provided the framework
for the structure and styling.
The scope of the project involves creating a simple, interactive web-based game where users
try to guess a randomly generated number within a predefined range. It includes building a user
interface with HTML and CSS, implementing game logic using JavaScript for number
generation, input validation, and feedback, and offering features like reset functionality, limited
attempts, and dynamic feedback on the player's guesses.
The Hit Number Game project is highly pertinent to internship objectives, especially for roles
in web development, software engineering, or UI/UX design. By building the game, interns
can demonstrate practical knowledge of HTML, CSS, and JavaScript, skills essential for
developing interactive web applications. It also showcases the ability to write clean, logical
code, manage user input, and design user-friendly interfaces, which align with the core
responsibilities of many internships focused on front-end development, user interaction, and
problem-solving. Additionally, the project highlights an understanding of project management,
from concept to deployment, which is a valuable asset in any internship.
The report begins by detailing the technical achievements and functional outcomes of the Hit
Number Game project, showcasing the effective use of technologies like
HTML,CSS,JavaScript. This is followed by a discussion of the challenges encountered during
development and the solutions implemented to overcome them. Finally, the report explores the
future scope of the project, outlining potential enhancements and expansions that could further
improve the application's functionality and user experience.
11
Chapter 2
Objectives:
1. Develop Core Web Development Skills: Implement the game using HTML, CSS,
and JavaScript, focusing on structuring, styling, and making the game interactive.
2. Implement Game Logic: Use JavaScript to generate a random number, validate user
input, and provide feedback.
5. Apply UI/UX Design Principles: Ensure the game is visually appealing, intuitive,
and responsive across different devices.
12
Chapter 3
Technologies Used in Hit Number Game
Purpose: Provides the structure of the web page, including the layout for input fields, buttons,
and feedback messages.
Purpose: Styles the game interface, making it visually appealing and ensuring responsive
design for different devices. Includes custom fonts, colors, and layout adjustments.
Fig 3.1 shows the outlook and logo of HTML and CSS
3.2. JavaScript:
13
DOM Manipulation: Updates the user interface dynamically based on user actions (e.g.,
displaying feedback messages and resetting the game).
Workflow:
Initialization: Generate a random target number and set up the initial game state.
User Input: Player enters a guess and submits it.
Validation: Check if the input is valid (e.g., a number within the range).
Evaluation: Compare the guess to the target number and provide feedback.
Tracking: Update and display the number of remaining attempts.
End/Reset: If the player wins or loses, display the result and offer an option to restart
the game.
14
Table 3.1: Overview of Technologies Used in the Project
15
Chapter 4
Design and Implementation
4.1. Design
Game Concept:
Gameplay: Users submit guesses and receive feedback until they either guess
correctly or run out of attempts.
4.2. Implementation
HTML (Structure):
Elements: Define the layout with input fields, buttons, and feedback messages.
Form Setup: Includes the input field for guesses and the submit button within a
form element.
16
CSS (Styling):
Visual Design: Style the input fields, buttons, and feedback areas to enhance
visual appeal.
Layout: Ensure the game is centered and responsive, adjusting to different screen
sizes.
JavaScript (Functionality):
Input Validation: Check if the input is a number and within the valid range.
Feedback Mechanism: Compare the user’s guess with the target number and
provide appropriate feedback.
Attempt Tracking: Manage the number of attempts and update the UI accordingly.
Event Handling.
Form Submission: Process the guess, update feedback, and adjust attempts.
Reset Functionality: Generate a new random number and reset the game state when the
reset button is clicked.
DOM Manipulation: Update the HTML content to display feedback and remaining
attempts dynamically.
These components ensure that the Hit Number Game is both functional and user friendly
17
Fig 4.1 Structure Content
Fig 4.1 shows the HTML code structures and defines the content and layout of web pages using
a system of nested elements and tags.
18
Fig 4.3 Designing of UI
Fig 4.2,4.3 and 4.4 explains about CSS code styles and layouts web page elements to define
the visual appearance and user interface design.
19
Fig 4.4 Designing of UI
20
Fig 4.6 Logic Code
Fig 4.5 and 4.6 are about the JavaScript code adds interactivity and dynamic behaviour to
web pages by manipulating HTML and CSS elements. It executes logic, handles user events,
and can communicate with servers to update content in real-time.
21
Chapter 5
Result
The Hit Number Game operates smoothly and meets its primary objectives. The game
successfully generates a random number within a specified range and provides users with
immediate feedback on their guesses, indicating whether they are too high, too low, or correct.
The functionality of number generation, input validation, and feedback delivery is seamless,
ensuring a reliable gameplay experience.
Performance testing reveals that the game handles user interactions efficiently, with quick
response times and accurate management of game state. The game is responsive and performs
consistently across different devices and browsers, making it accessible to a broad audience.
Input errors are managed gracefully, with clear messages guiding users to correct their guesses.
User feedback has been positive, highlighting the game's engaging and intuitive design. While
the simplicity of the game is appreciated, suggestions for additional features and visual
enhancements have been noted. Overall, the Hit Number Game demonstrates effective web
development skills and provides a solid foundation for further development and refinement.
22
Fig 5.2 Running game
Fig 5.1 and 5.2 show the outlook interface from starting the game to its running position in
particular range
23
Fig 5.4 Result of the game
Fig 5.3 and 5.4 shows the different results are determined by how exact a player's hit the target
number, ranging from exact matches to varying degrees of proximity. Results typically include
feedback such as "Thik Thak hai," "haulaa hai kya," to guide further guesses.
24
Chapter 6
Conclusion and Future Scope
The Hit Number Game, developed using HTML, CSS, and JavaScript, successfully combines
simplicity with engagement, making it accessible and enjoyable for a broad audience. The
game’s straightforward mechanics—where players hit a number and receive feedback about
how exact their hits are to a target number—create an interactive and satisfying experience.
The use of these technologies ensures that the game is lightweight and compatible across
various devices and browsers. The integration of JavaScript for game logic allows for dynamic
interaction, while HTML and CSS provide a clean and intuitive interface. Overall, the game
effectively demonstrates the potential of basic web technologies to create engaging and
educational content.
The future of the Hit Number Game, developed with HTML, CSS, and JavaScript, holds
promising enhancements that can significantly elevate the player experience. One key area is
enhanced interactivity; advanced JavaScript features can introduce dynamic feedback
mechanisms, such as visual cues and animations, which will make the game more engaging
and responsive. By leveraging CSS for interactive elements and transitions, the game’s user
interface can become more visually appealing and intuitive.
Finally, adding customizable game experiences, such as adjustable settings and various visual
themes, would provide players with more control over their gameplay, increasing both
personalization and replayability. By exploring these future aspects, the Hit Number Game can
evolve to offer a richer, more interactive, and personalized experience, fully utilizing the
capabilities of HTML, CSS, and JavaScript.
25
References and Links
[1] Engström, H. (2020) Game Development Research. The University of Skövde, ISBN 978-
91-984918-7-6 (print), 978-91-984918-8-3 (digital)
[2] Ahmed, F., Capretz, L. F., 2011. A business maturity model of software product line
engineering. Information Systems Frontiers, Springer, 13, 4, 543–560, DOI: 10.1007/s10796-
010-9230-8
[3] Bethke E (2003). Game Development and Production. Wordware game developer's
library. Wordware Pub, Plano. ISBN 978-0-585-44833-6
[4] https://www.geeksforgeeks.org/html-introduction/
[5] https://developer.mozilla.org/en-US/docs/Web/HTML
[6] https://developer.mozilla.org/en-US/docs/Web/JavaScript
26