Game mode selection

You have to clear TinyDB
Then try again and post a screenshot of your updated relevant blocks

Please also use Do it to debug your blocks yourself
Taifun

when i clear the tinydb it takes value but whenever i try to enter value without clearing, the same error occurs

Also show us a Do it result of that block you are getting the error from

Taifun

Pleas use Do it and show us the Do it result

Taifun

image

image

need a little help here....why these blocks end up showing this error.. any solution block for this or where i have to make changes ?

Show the output of just the responseContent

The Elements property of a listpicker or listview is only able to accept lists... you are trying to assign the string "not found", which obviously will not work

Taifun

thanku so much buddy it worked.... not showing an error now.
but now how to print the answer choices as it only takes up "or if not found" value
if i assign an empty list there, it shows clear list..... how to assign and print the answer values ?

It depends on the data
Unfortunately we do not know, how the data looks like...

Taifun

Your attempt to create a list of Elements containing the correct and the incorrect answers is wrong.

You will need to break it down to separate lists, then combine and randomize the combined list before you can assign it to Elements.

the data is like this..... it is an online json file of ques

Would help if you post that as text....

sure.....

{
    "response_code": 0,
    "results": [
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "hard",
            "question": "When was the first Call of Duty title released?",
            "correct_answer": "October 29, 2003",
            "incorrect_answers": [
                "December 1, 2003",
                "November 14, 2002",
                "July 18, 2004"
            ]
        },
        {
            "category": "Geography",
            "type": "multiple",
            "difficulty": "hard",
            "question": "What country is not a part of Scandinavia?",
            "correct_answer": "Finland",
            "incorrect_answers": [
                "Norway",
                "Sweden",
                "Denmark"
            ]
        },
        {
            "category": "Entertainment: Books",
            "type": "multiple",
            "difficulty": "hard",
            "question": "Which author and poet famously wrote the line, "The female of the species is more deadly than the male"?",
            "correct_answer": "Rudyard Kipling",
            "incorrect_answers": [
                "Edgar Allan Poe",
                "William Shakespeare",
                "William Wordsworth"
            ]
        },
        {
            "category": "Entertainment: Books",
            "type": "multiple",
            "difficulty": "hard",
            "question": "In the Beatrix Potter books, what type of animal is Tommy Brock?",
            "correct_answer": "Badger",
            "incorrect_answers": [
                "Fox",
                "Frog",
                "Rabbit"
            ]
        },
        {
            "category": "Science & Nature",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What does the letter 'S' stand for in 'NASA'?",
            "correct_answer": "Space",
            "incorrect_answers": [
                "Science",
                "Society",
                "Star"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "easy",
            "question": "How many manned moon landings have there been?",
            "correct_answer": "6",
            "incorrect_answers": [
                "1",
                "3",
                "7"
            ]
        },
        {
            "category": "Geography",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What country is the second largest in the world by area?",
            "correct_answer": "Canada",
            "incorrect_answers": [
                "Russia",
                "China",
                "United States of America"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "hard",
            "question": "Spain was formed in 1469 with the marriage of Isabella I of Castile and Ferdinand II of what other Iberian kingdom?",
            "correct_answer": "Aragon",
            "incorrect_answers": [
                "Galicia",
                "León",
                "Navarre"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Along with Gabe Newell, who co-founded Valve?",
            "correct_answer": "Mike Harrington",
            "incorrect_answers": [
                "Robin Walker",
                "Marc Laidlaw",
                "Stephen Bahl"
            ]
        },
        {
            "category": "Science: Computers",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Moore's law originally stated that the number of transistors on a microprocessor chip would double every...",
            "correct_answer": "Year",
            "incorrect_answers": [
                "Four Years",
                "Two Years",
                "Eight Years"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "medium",
            "question": "All of the following are names of the Seven Warring States EXCEPT:",
            "correct_answer": "Zhai (翟)",
            "incorrect_answers": [
                "Zhao (趙)",
                "Qin (秦)",
                "Qi (齊)"
            ]
        },
        {
            "category": "Entertainment: Music",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Which song is not by TheFatRat?",
            "correct_answer": "Ascent",
            "incorrect_answers": [
                "Monody",
                "Windfall",
                "Infinite Power!"
            ]
        },
        {
            "category": "Sports",
            "type": "boolean",
            "difficulty": "medium",
            "question": "Tennis was once known as Racquetball.",
            "correct_answer": "False",
            "incorrect_answers": [
                "True"
            ]
        },
        {
            "category": "Science & Nature",
            "type": "multiple",
            "difficulty": "easy",
            "question": "Who is the chemical element Curium named after?",
            "correct_answer": "Marie & Pierre Curie",
            "incorrect_answers": [
                "The Curiosity Rover",
                "Curious George",
                "Stephen Curry"
            ]
        },
        {
            "category": "Mythology",
            "type": "boolean",
            "difficulty": "easy",
            "question": "According to Greek Mythology, Zeus can control lightning.",
            "correct_answer": "True",
            "incorrect_answers": [
                "False"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "medium",
            "question": "In Left 4 Dead, what is the name of the virus, as designated by CEDA, that causes most humans to turn into the Infected?",
            "correct_answer": "Green Flu",
            "incorrect_answers": [
                "Yellow Fever",
                "T-Virus",
                "Raspberry Sniffles"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What year did the game "Overwatch" enter closed beta?",
            "correct_answer": "2015",
            "incorrect_answers": [
                "2013",
                "2011",
                "2016"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "easy",
            "question": "Which of these is NOT a Humongous Entertainment game franchise?",
            "correct_answer": "Commander Keen",
            "incorrect_answers": [
                "Pajama Sam",
                "Putt-Putt",
                "Freddi Fish"
            ]
        },
        {
            "category": "Science: Computers",
            "type": "multiple",
            "difficulty": "medium",
            "question": "What is the name of the default theme that is installed with Windows XP?",
            "correct_answer": "Luna",
            "incorrect_answers": [
                "Neptune",
                "Whistler",
                "Bliss"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "easy",
            "question": "Which of the following is NOT a summon in the game "South Park: The Stick of Truth"?",
            "correct_answer": "Towelie",
            "incorrect_answers": [
                "Jesus",
                "Mr. Hankey",
                "Mr. Slave"
            ]
        },
        {
            "category": "Entertainment: Musicals & Theatres",
            "type": "multiple",
            "difficulty": "medium",
            "question": "What play is the quote "Hell is other people" from?",
            "correct_answer": "No Exit",
            "incorrect_answers": [
                "The Devil and the Good Lord",
                "The Condemned of Altona",
                "The Flies"
            ]
        },
        {
            "category": "Entertainment: Television",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What is the real name of the famous spanish humorist, El Risitas?",
            "correct_answer": "Juan Joya Borga",
            "incorrect_answers": [
                "Gabriel Garcia Marquez",
                "Jesus Quintero",
                "Ernesto Guevara"
            ]
        },
        {
            "category": "Entertainment: Board Games",
            "type": "multiple",
            "difficulty": "hard",
            "question": "What do you declare in Rīchi Mahjong when you've drawn your winning tile?",
            "correct_answer": "Tsumo",
            "incorrect_answers": [
                "Ron",
                "Rīchi",
                "Kan"
            ]
        },
        {
            "category": "Entertainment: Board Games",
            "type": "multiple",
            "difficulty": "hard",
            "question": "How many rooms are there, not including the hallways and the set of stairs, in the board game "Clue"?",
            "correct_answer": "9",
            "incorrect_answers": [
                "1",
                "6",
                "10"
            ]
        },
        {
            "category": "Vehicles",
            "type": "multiple",
            "difficulty": "easy",
            "question": "The LS7 engine is how many cubic inches?",
            "correct_answer": "427",
            "incorrect_answers": [
                "346",
                "364",
                "376"
            ]
        },
        {
            "category": "General Knowledge",
            "type": "multiple",
            "difficulty": "medium",
            "question": "What is a Burgee?",
            "correct_answer": "A flag",
            "incorrect_answers": [
                "A rope",
                "A window",
                "A type of food"
            ]
        },
        {
            "category": "Science & Nature",
            "type": "multiple",
            "difficulty": "hard",
            "question": "What is the unit of electrical inductance?",
            "correct_answer": "Henry",
            "incorrect_answers": [
                "Weber",
                "Coulomb",
                "Mho"
            ]
        },
        {
            "category": "Entertainment: Music",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Which band released the album "Sonic Highways" in 2014?",
            "correct_answer": "Foo Fighters",
            "incorrect_answers": [
                "Coldplay",
                "Nickelback",
                "The Flaming Lips"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Which country was an allied power in World War II?",
            "correct_answer": "Soviet Union",
            "incorrect_answers": [
                "Italy",
                "Germany",
                "Japan"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "boolean",
            "difficulty": "medium",
            "question": "The Fiat Multipla is a drivable car in "Forza Horizon 3".",
            "correct_answer": "False",
            "incorrect_answers": [
                "True"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "hard",
            "question": "In "Team Fortress 2", what is the fastest taunt kill that can be pulled off?",
            "correct_answer": "Showdown",
            "incorrect_answers": [
                "Hadouken",
                "Organ Grinder",
                "Skewer"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "multiple",
            "difficulty": "medium",
            "question": "In Grand Theft Auto: V, what wanted level does the player receive if they enter Zancudo Army Base north of Los Santos?",
            "correct_answer": "4",
            "incorrect_answers": [
                "3",
                "5",
                "1"
            ]
        },
        {
            "category": "Entertainment: Cartoon & Animations",
            "type": "multiple",
            "difficulty": "medium",
            "question": "How many episodes were in season five of Samurai Jack?",
            "correct_answer": "10",
            "incorrect_answers": [
                "12",
                "11",
                "13"
            ]
        },
        {
            "category": "Entertainment: Comics",
            "type": "multiple",
            "difficulty": "medium",
            "question": "In Calvin and Hobbes, what is the name of the babysitter's boyfriend?",
            "correct_answer": "Charlie",
            "incorrect_answers": [
                "Dave",
                "Charles",
                "Nathaniel"
            ]
        },
        {
            "category": "Entertainment: Music",
            "type": "boolean",
            "difficulty": "medium",
            "question": "Musical artist, Future, collaborated with Kendrick Lamar for the song: "Mask Off".",
            "correct_answer": "True",
            "incorrect_answers": [
                "False"
            ]
        },
        {
            "category": "Entertainment: Video Games",
            "type": "boolean",
            "difficulty": "medium",
            "question": "The scrapped Sonic the Hedgehog 2 level "Hidden Palace Zone" was later reused in the iOS port of the game. ",
            "correct_answer": "True",
            "incorrect_answers": [
                "False"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "medium",
            "question": "What year did the Vietnam War end?",
            "correct_answer": "1975",
            "incorrect_answers": [
                "1978",
                "1967",
                "1969"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What is the historical name of Sri Lanka?",
            "correct_answer": "Ceylon",
            "incorrect_answers": [
                "Myanmar",
                "Colombo",
                "Badulla"
            ]
        },
        {
            "category": "Entertainment: Japanese Anime & Manga",
            "type": "multiple",
            "difficulty": "easy",
            "question": "What is the theme song of "Neon Genesis Evangelion"?",
            "correct_answer": "A Cruel Angel's Thesis",
            "incorrect_answers": [
                "Stardust Crusaders",
                "Requiem for a Dream",
                "God Knows"
            ]
        },
        {
            "category": "Entertainment: Music",
            "type": "multiple",
            "difficulty": "medium",
            "question": "The 'In the Flesh' tour was used in support of what Pink Floyd album?",
            "correct_answer": "Animals",
            "incorrect_answers": [
                "The Wall",
                "Wish You Were Here",
                "The Final Cut"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "medium",
            "question": "In 1845, a series of wars named after which indigenous people began in New Zealand?",
            "correct_answer": "Māori",
            "incorrect_answers": [
                "Papuans",
                "Aborigines",
                "Polynesians"
            ]
        },
        {
            "category": "Entertainment: Cartoon & Animations",
            "type": "boolean",
            "difficulty": "medium",
            "question": "Donald Duck played the role of Bob Cratchit in Disney's 1983 adaptation of A Christmas Carol.",
            "correct_answer": "False",
            "incorrect_answers": [
                "True"
            ]
        },
        {
            "category": "Science & Nature",
            "type": "boolean",
            "difficulty": "easy",
            "question": "A plant that has a life cycle for more than a year is known as an annual.",
            "correct_answer": "False",
            "incorrect_answers": [
                "True"
            ]
        },
        {
            "category": "Entertainment: Books",
            "type": "multiple",
            "difficulty": "hard",
            "question": "Which fictional English county was the setting for Thomas Hardy's novels?",
            "correct_answer": "Wessex",
            "incorrect_answers": [
                "Barsetshire",
                "Fulchester",
                "Ambridge"
            ]
        },
        {
            "category": "Entertainment: Film",
            "type": "multiple",
            "difficulty": "hard",
            "question": "Which boxer was famous for striking the gong in the introduction to J. Arthur Rank films?",
            "correct_answer": "Bombardier Billy Wells",
            "incorrect_answers": [
                "Freddie Mills",
                "Terry Spinks",
                "Don Cockell"
            ]
        },
        {
            "category": "Sports",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Who is Manchester United's top premier league goal scorer?",
            "correct_answer": "Wayne Rooney",
            "incorrect_answers": [
                "Sir Bobby Charlton",
                "Ryan Giggs",
                "David Beckham"
            ]
        },
        {
            "category": "Science & Nature",
            "type": "multiple",
            "difficulty": "hard",
            "question": "Which of the following are cells of the adaptive immune system?",
            "correct_answer": "Cytotoxic T cells",
            "incorrect_answers": [
                "Dendritic cells",
                "Natural killer cells",
                "White blood cells"
            ]
        },
        {
            "category": "History",
            "type": "multiple",
            "difficulty": "medium",
            "question": "John Moses Browning, the designer of the M1918 BAR (Browning Automatic Rifle) was a part of which religion?",
            "correct_answer": "Mormon",
            "incorrect_answers": [
                "Catholic",
                "Jewish",
                "Atheist"
            ]
        },
        {
            "category": "Entertainment: Music",
            "type": "multiple",
            "difficulty": "medium",
            "question": "Which of these albums is a Wu-Tang Clan album?",
            "correct_answer": "Iron Flag",
            "incorrect_answers": [
                "Perfect Hair",
                "The Low End Theory",
                "Licensed to Ill"
            ]
        },
        {
            "category": "General Knowledge",
            "type": "multiple",
            "difficulty": "easy",
            "question": "When was the Playstation 3 released?",
            "correct_answer": "November 11, 2006",
            "incorrect_answers": [
                "January 8, 2007",
                "December 25, 2007",
                "July 16, 2006"
            ]
        }
    ]
}

See

for an app that handles that problem.

it is raising this error (circled with purple marker in the blocks)

Your shuffle procedure has a wrong starting index.

thank youuu so mch......it helped a lottttt

great!.so is the game working?..can you share the aia file !!?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.