Hello! I am making a one quote a day app. after looking at lots of tutorials and browsing the community extensively. I couldn't find a more efficient way to make the app than manually entering the quotes for everyday 365 times. I am posting this here to see if anyone would have an idea of how to make the app more efficiently.
PS: I can't really use an API because many of the quotes are mine or not found online.
Here are my blocks so far
ABG
September 12, 2022, 2:13am
2
You need to keep your quotes in a file in the Media folder.
For an example of how to pick a random line from a file, see
This week the US news networks have been reporting on a free web game by Josh Wardle called Wordle , similar to Jotto, developed as a personal project and open for all.
His variation has:
one chance to play per day
every one shares the same daily word
words have exactly 5 letters
you get six guesses
You are told
which letters match in place (green),
which letters match out of place (yellow)
which letters don't match anywhere (dark grey).
I decided to try to replicate his app in AI2 under t…
Thanks for the answer! So as I understand it. I have to fill a file media with the quotes and then use a file component to call it as here
But then I am still faced with being able to uniquely display one quote per day with no repetitions using the date picker calendar.
PS: To Be more precise. I want to have the user to be able to select ANY date they want and have a specific quote for that day that does not change.
after read the quotes from assets, you need to convert it to a list, then
of course, the length of the quotes should be more than 366.
1 Like
SteveJG
September 12, 2022, 12:09pm
6
Very simple approach based on nth day of 365days.. Good one @Anke
1 Like
ABG
September 12, 2022, 1:35pm
8
If you don't have enough quotes to fill a calendar year, you can use modulo arithmetic, as in this planned expansion to my Wordle app ...
P.S. For a single column file, I find the SPLIT AT \n block a very easy way to form a list from the text.
@Anke @SteveJG @Kevinkun @ABG thank you so much y'all! Working on it right now and will get back with how it went.