Harsh HTML
Harsh HTML
BACHELOR OF ENGINEERING
SUBMITTED BY:
1
RANDOM STORY GENERATE GAME
2
CANDIDATE'S DECLARATION
I hereby declare that the project titled “Random Story
Generator" ismy own work, and I have completed it under
the guidance andsupervision of My Mentors at Indus
International University. Theproject has been developed
as part of my Bachelor’s Of Computer
Science program, and all the work presented in this
project is originaland has not been copied from any
external sources without propercitations.
I further affirm that all the data, research, and findings
used in thisreport are authentic to the best of my
knowledge. Any assistancereceived in the preparation of
this report has been dulyacknowledged. I also confirm that
this project has not been submitted
for any other degree or academic qualification.
This work was completed between [start date] and [end
date], and Iam solely responsible for the content
presented here.
3
Project: Random Story Generator
Objective:
Tocreate a web-based application that generates random,
short stories by combining elements from pre-defined
arrays.
Functionality:
1. User Interface:
o A simple, user-friendly interface with a clear heading.
2. Story Generation:
o Three arrays: beginnings, middles, and ends, each
4
o Updates the paragraph element to display the
generated story.
Enhancements
1. Customization:
o Allow users to input their own story segments.
the arrays.
2. Story Length:
o Implement options for generating stories of different
4. Story Structure:
o Experiment with different story structures (e.g., linear,
branching, cyclical).
o Implement algorithms to generate stories with varying
5. Visual Appeal:
o Customize the appearance of the generated stories
5
o Add animations or visual effects to enhance the user
experience.
6. User Feedback:
o Incorporate a feedback mechanism (e.g., rating
system, comments).
o Use user feedback to improve the story generation
Additional Considerations:
<script>
7
document.getElementById('generateButton').addEventListener('click', function() {
const beginnings = ['Once upon a time', 'In a galaxy far, far away', 'In an ancient land'];
const middles = ['there lived a mighty dragon', 'a hero was born', 'an adventure began'];
const ends = ['and they all lived happily ever after.', 'which changed the world forever.',
'marking the area as legendary.'];
Output: