Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Aphorism Generator in FUZE4

    Work In Progress
    4
    23
    1356
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Ancientspark F last edited by MikeDX

      A change in plans for my first attempt.. I'm going to begin work on a program I always rewrite in new languages that I learn it's a litmus test for me personally since I understand how the program works in and out and I simply have to figure out HOW to do it in X language. So now I will be building a random phrase generator that I call an Aphorism Generator.. it starts out simple with one sentence structure and then I add more and more randomized structures for excitement.. Each word type, be it noun, adj, adv, verb.. etc.. is pulled from its own variable array for that type of word... it's an easy enough program to begin because you simply start with 3 different words for each word type just to get the code finished.. then you add a selection of different sentence structures that the program randomly chooses among also randomly choosing each word separately and reseeds the random statement after every word is chosen just to keep things fresh and different every time.

      It's a neat rainy-day "game" that will be kind of like mad-libs but fully chosen by the computer.. except that you code the words yourself.. ;) and the sentence structures it chooses... so.. you can have a lot of fun with a program even though it only generates random sentences.

      oh and of course.. just to be clear I only begin with 3 words for each word type.. i go back immediately and make it 5, then 10, then more and more as I think of new words to add to its vocabulary. This would be great to pair with a speech synthesis project and see if we could make it talk.

      Zero Division 1 Reply Last reply Reply Quote 5
      • A
        Ancientspark F last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • _
          _JKDOS F last edited by

          It's going to be tough entering all these words and sentences on the Switch by hand. I made a word generator for Madlibs in Javascript, and being on a computer, I was able to easily create arrays and structs filled with words by copying and pasting most of the words from online resources. Wish you the best of luck!

          1 Reply Last reply Reply Quote 0
          • A
            Ancientspark F last edited by

            I originally constructed the idea in 1993... on a 386.. had a whopping 40mb hard drive and DOS 6.22 with Win 3.1. I primarily only used dos however until 98 SE.
            My first attempt was without the use of the internet and I simply had nothing else to do being winter and I couldn't go swimming which is my activity of choice in the summer time. It was work and programming.. that was it. My program once came up with "Nixon creates the speed limit and scandal" and each word was coming from a different array... I had proper names and everything.. happily hand-coded. That combination was very gratifying and funny ... I should have taken a polaroid of it .. now I'm showing my age. To be honest, as I have stated earlier I always use that program to test out newer languages and even though I had the power to copy and paste later on.. I never really did. I feel that I'd rather choose my own words myself in most cases .. especially in life. :)

            1 Reply Last reply Reply Quote 2
            • A
              Ancientspark F last edited by MikeDX

              https://knight2remember.com/NES-SWITCH/APHORISM GEN 1.0.mp4

              This is the first version output. Just friend me and look at the code, I started with 5 variables in each array to begin with... modify this as you like. I will be next working on different sentence structures, and then on to more words for each array.. this is only the beginning to a very modifiable program idea.. and it's great for a rainy day.

              1 Reply Last reply Reply Quote 3
              • A
                Ancientspark F last edited by

                Life got ahead of me a bit.. I will now be working on multiple sentence structures and more words... my end point idea is to finally include the ability for the user to input their own words like Mad-Libs and then watch the random fun begin and maybe even score points if the sentences include their words.. I will be working on a base of 3 different structures for 2.0.... then 2.1 will be more words included.. and later.. 3.0 will have user input and scoring just for fun.

                1 Reply Last reply Reply Quote 1
                • A
                  Ancientspark F last edited by

                  I am going to have to start again on this as I had downloaded my own program to my main Switch account.. and I even saved it as default and all.. but when I deleted the Allie account because I've changed the name of my name account TO Allie.. I realized as I went back INTO Fuze that my project was GONE.. SO.. If you download someone else's project.. even if it's your own on a different user account.. and then that account gets deleted.. then the program you downloaded WILL ALSO be deleted even if you save it again yourself :(

                  Zero Division 1 Reply Last reply Reply Quote 1
                  • A
                    Ancientspark F last edited by

                    Well time to get restarted on this.. I will be going ahead and updating the engine AS I rebuild it to include the different sentence structures as initially planned and also update the number of words in each set of arrays. More to come. I will be RE-POSTING my FRIEND CODE because the one I posted is no longer available.

                    1 Reply Last reply Reply Quote 0
                    • Spacemario
                      Spacemario F last edited by

                      It's really cool that you have the same program idea since 1993, and keep re-doing it in different languages-- it's kind of a meta concept, I've never thought of doing something like that!

                      1 Reply Last reply Reply Quote 0
                      • A
                        Ancientspark F last edited by

                        it's not so much of a serious as heck program as it is a formulaic idea that serves as a way to see how a new language handles arrays and choices... it's easy enough to figure out how to set up in most languages and shows the programmer a good introduction to some primary functions of each language.

                        1 Reply Last reply Reply Quote 0
                        • A
                          Ancientspark F last edited by

                          I have finally recoded the first version for Aphorism Generator 1.0.
                          This one has just 1 sentence structure and 5 words for each word type.
                          I had to get the basic engine fleshed out first and NOW I will be building different sentence structures
                          and many more words for 1.1.

                          2.0 will actually allow user input once I figure it out, and possibly scoring for if your words are used!

                          Aphorism Generator 1.jpg
                          Aphorism Generator 2.jpg
                          Aphorism Generator 3.jpg
                          Aphorism Generator 4.jpg

                          1 Reply Last reply Reply Quote 2
                          • A
                            Ancientspark F last edited by

                            I would love to share this and I have opened it for sharing.. have fun and go mad! Just remember to change the variable counts when you do add more words
                            and such so that they are included in the sentences or you wont see them appear.

                            MY SWITCH FRIEND CODE
                            SW-5703-4990-8796

                            1 Reply Last reply Reply Quote 0
                            • A
                              Ancientspark F last edited by

                              I am now going to finish watching the new tutorials!! What a blast!

                              1 Reply Last reply Reply Quote 0
                              • A
                                Ancientspark F last edited by

                                Okay.. I am ready to get back to the program... I had a lot of fun watching the screen tutorial and I plan to have some random graphics fun in my next project, but I need to get the Aphorism Generator where it really needs to BE... something pretty fun for a rainy day... so next I will be adding plenty more words, AND a higher sentence structure count to boot. STAY TUNED LOVIES!!

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Ancientspark F last edited by

                                  Version 1.1 has 25 words each for MOST word types, as well as NEW word types AND 3 DIFFERENT sentence structures.. ALMOST DONE....

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    Ancientspark F @Ancientspark last edited by MikeDX

                                    Okay. Version 1.1 is done with 25 words (mostly) for each word type and now 3 different sentence structures!

                                    Aphorism Generator 1-1.jpg

                                    Aphorism Generator 1-1--2.jpg

                                    Aphorism Generator 1-1--3.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • Spacemario
                                      Spacemario F last edited by

                                      This thing is hilarious, it's like "Madlibs"-- I used to do those all the time as a kid! One thing though, I noticed the output was getting cut off in handheld mode, not sure if you've tried it there.

                                      1 Reply Last reply Reply Quote 1
                                      • A
                                        Ancientspark F last edited by

                                        Oh really? ok no I have not.. I need to check handheld mode now and see.. one of the sentence structures is longer and that may very well be so... thank you. Please send a friend request my way and you can play with this yourself!!

                                        1 Reply Last reply Reply Quote 0
                                        • Zero Division
                                          Zero Division @Ancientspark last edited by

                                          @Ancientspark Cool! I wrote a program once that used Markov chains to mash up text from books I downloaded from Project Gutenberg. At one point it spat out "Tarzan leapt over the chair and fired his raygun" and I felt pleased. It certainly spat out a lot of grammatically correct nonsense though.

                                          1 Reply Last reply Reply Quote 0
                                          • Zero Division
                                            Zero Division @Ancientspark last edited by

                                            @Ancientspark Yikes. Thanks for letting us know about it.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post