Author Topic: Re: a small personal program that prints a short poem using DATA  (Read 776 times)

0 Members and 1 Guest are viewing this topic.

Marked as best answer by on June 08, 2021, 11:10:43 pm

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Hi Ron,

Have you considered reading the lines randomly? I mean otherwise the poem could be read in text file or straight PRINTs... might not be so sad either???

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: a small personal program that prints a short poem using DATA
« Reply #1 on: August 22, 2019, 03:09:25 pm »
Hi Ron,

Any amusing combinations?

Here is another idea:

Write or copy a short story, take all the places where the hero is named and replace with hero$ variable, same with other like nouns, adjectives, verbs. Then ask the user to name some hero or heroes that you will use to substitute for hero$, like wise for maybe 3 adjectives, verbs and nouns.

Now retell the story with the variables substitutions. It can be quite amusing!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: a small personal program that prints a short poem using DATA
« Reply #2 on: August 22, 2019, 10:41:15 pm »
LOL !!!

 
LOL Story!.PNG


I liked using Data rather than loading a file. But for longer story, a file is much easier to use.

Nice job!

Offline Jack002

  • Forum Regular
  • Posts: 123
  • Boss, l wanna talk about arrays
    • View Profile
Re: a small personal program that prints a short poem using DATA
« Reply #3 on: August 23, 2019, 10:46:39 am »
Many years ago there was a senario generator that worked much the same way. I think it was a type in program for the C=64. Great stuff
QB64 is the best!

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: a small personal program that prints a short poem using DATA
« Reply #4 on: August 23, 2019, 06:44:00 pm »
Nice, BPlus (or Godzilla?) :-)