Educators & Classrooms

Free U.S. geography and history resources for teachers

About FactMap

50
States
276
Facts
32
Topics

FactMap is a free, ad-free reference covering surprising and little-known facts about every U.S. state β€” spanning history, geography, science, culture, and more. Everything on this page is free to use in your classroom.

Classroom Resources

Browse by Topic

Jump straight to facts by subject area β€” useful for thematic units.

Generate a Google Classroom Quiz

This script creates a fully graded Google Form quiz from FactMap's 276-question bank β€” ready to assign in Google Classroom in under 2 minutes. Wrong answers come from the same U.S. region as the correct state so it's challenging but fair.

  1. Go to script.google.com and click + New project
  2. Select all the default code and delete it, then paste the script below
  3. At the top, click Run β†’ createFactMapQuiz
  4. When prompted, click Review permissions β†’ Allow (one-time only β€” the script only accesses your own Drive)
  5. Check your Google Drive for a new form titled "U.S. State Facts Quiz"
  6. In Google Classroom: + Create β†’ Assignment β†’ Add β†’ Google Drive β†’ select the form β†’ change type to Quiz assignment

Customize before running: Edit CONFIG.questionCount (default 20, max 276) and CONFIG.title at the top of the script.

/**
 * FactMap β€” U.S. State Facts Quiz Generator
 * ══════════════════════════════════════════════════════════════
 * Creates a ready-to-assign Google Form quiz in your Google Drive.
 *
 * HOW TO USE:
 *  1. Go to script.google.com and create a new project
 *  2. Delete the default code and paste this entire script
 *  3. Click Run β†’ createFactMapQuiz
 *  4. Grant permissions when prompted (one-time only)
 *  5. Check your Google Drive for the new form
 *  6. In Google Classroom β†’ + Create β†’ Assignment
 *  7. Attach the form and set it as a "Quiz assignment"
 *
 * CUSTOMIZE: Edit the CONFIG object below before running.
 * ══════════════════════════════════════════════════════════════
 */

var CONFIG = {
  title:             'U.S. State Facts Quiz β€” FactMap',
  description:       'Test your knowledge of fun and surprising facts about all 50 U.S. states! Powered by FactMap.us',
  questionCount:     20,       // How many questions to include (max 276)
  pointsPerQuestion: 1,        // Points awarded per correct answer
  shuffleQuestions:  true,     // Randomize question order each time
  shuffleAnswers:    true,     // Randomize the order of answer choices
};

// ── Question bank (276 questions across all 50 states) ──────────────────────
// Wrong answers come from the same U.S. region as the correct state,
// so students can't simply eliminate distant states.
// Format: { q: question, c: correct answer, w: [wrong1, wrong2, wrong3] }
var QUESTIONS = [{"q":"Which state is home to NASA's Marshall Space Flight Center, earning its largest city the nickname 'Rocket City'?","c":"Alabama","w":["Kentucky","Louisiana","Mississippi"]},{"q":"Which state built the world's first monument to an agricultural pest?","c":"Alabama","w":["Tennessee","Mississippi","Louisiana"]},{"q":"Which state hosts the world's largest fishing competition, drawing over 3,000 anglers each year?","c":"Alabama","w":["Mississippi","Kentucky","Tennessee"]},{"q":"Which state counts the pecan as its official state nut?","c":"Alabama","w":["Kentucky","Louisiana","Tennessee"]},{"q":"Which state is home to Little River Canyon, carved by one of the longest mountaintop rivers in the country?","c":"Alabama","w":["Mississippi","Tennessee","Kentucky"]},{"q":"Which state experiences a tidal bore wave seven feet high that rushes upstream at 15 mph?","c":"Alaska","w":["Montana","Utah","New Mexico"]},{"q":"Which state grows record-breaking giant vegetables at its annual state fair, fueled by nearly round-the-clock summer sunlight?","c":"Alaska","w":["Idaho","Montana","Hawaii"]},{"q":"Which state was struck by the most powerful earthquake ever recorded in North America, measuring 9.2 on the Richter scale?","c":"Alaska","w":["Montana","Arizona","Wyoming"]},{"q":"Which state has a university research center dedicated to documenting and preserving more than 20 indigenous languages?","c":"Alaska","w":["Hawaii","Idaho","Utah"]},{"q":"Which state contains the largest national park in the United States, bigger than Yellowstone, Yosemite, and Switzerland combined?","c":"Alaska","w":["Montana","Nevada","New Mexico"]},{"q":"Which desert state also has ski resorts in its northern pine forests?","c":"Arizona","w":["Wyoming","New Mexico","Montana"]},{"q":"Which state is home to the country's most populous Native American reservation, with over 300,000 citizens?","c":"Arizona","w":["Utah","Nevada","Idaho"]},{"q":"Which state contains one of the seven natural wonders of the world, exposing nearly two billion years of Earth's geological history?","c":"Arizona","w":["Montana","Wyoming","Colorado"]},{"q":"Which state contains one of the world's best-preserved meteor impact sites, created roughly 50,000 years ago?","c":"Arizona","w":["Idaho","New Mexico","Nevada"]},{"q":"Which state has a law allowing cities to charge reckless drivers who ignore flood-control barriers for their own rescue?","c":"Arizona","w":["Montana","Idaho","Wyoming"]},{"q":"Which state made the bolo tie its official state neckwear in 1971?","c":"Arizona","w":["Idaho","Nevada","Utah"]},{"q":"Which state hosts the world's largest solar telescope at a national observatory?","c":"Arizona","w":["Montana","New Mexico","Colorado"]},{"q":"Which state's Ozark mountain fiddlers are revered as keepers of local folklore and musical tradition?","c":"Arkansas","w":["Mississippi","Alabama","Louisiana"]},{"q":"Which state's Ozark region is a major source of wild American ginseng, prized in Asian markets for its medicinal roots?","c":"Arkansas","w":["Alabama","Tennessee","Louisiana"]},{"q":"Which state was the birthplace of Ben Pearson, considered the father of modern archery in the United States?","c":"Arkansas","w":["Tennessee","Louisiana","Mississippi"]},{"q":"Which state has a park where visitors can dig for real diamonds and keep every one they find?","c":"Arkansas","w":["Alabama","Tennessee","Mississippi"]},{"q":"Which state has 47 natural hot springs flowing at an average temperature of 143 degrees Fahrenheit?","c":"Arkansas","w":["Mississippi","Louisiana","Alabama"]},{"q":"Which state was home to the very first Walmart store, opened in 1962 by Sam Walton?","c":"Arkansas","w":["Alabama","Mississippi","Tennessee"]},{"q":"Which state contains more American mastodon fossil remains than any other in the mid-South region?","c":"Arkansas","w":["Mississippi","Tennessee","Louisiana"]},{"q":"Which state is credited as the birthplace of cheese dip, and even hosts an annual World Cheese Dip Championship?","c":"Arkansas","w":["Alabama","Louisiana","Tennessee"]},{"q":"Which state has the largest population in the United States, with nearly 40 million residents?","c":"California","w":["Washington","Montana","Nevada"]},{"q":"Which state is associated with a unique English dialect often linked to young coastal speakers in American pop culture?","c":"California","w":["Oregon","Idaho","New Mexico"]},{"q":"Which is the only U.S. state to have hosted both the Summer and Winter Olympic Games?","c":"California","w":["Washington","Colorado","Montana"]},{"q":"Which state is home to the largest natural outdoor amphitheater in the United States?","c":"California","w":["Montana","Idaho","Nevada"]},{"q":"Which state's largest freshwater lake was drained for agriculture in the 19th century, only to briefly return during the floods of 2023?","c":"California","w":["Arizona","New Mexico","Wyoming"]},{"q":"Which state is home to the tallest waterfall in North America, plunging 2,425 feet?","c":"California","w":["Oregon","Colorado","Idaho"]},{"q":"Which state is home to the highest suspension bridge in the United States, spanning a river at over 1,000 feet elevation?","c":"Colorado","w":["Idaho","Arizona","Utah"]},{"q":"Which state has a national monument preserving extraordinarily detailed fossils from 34 million years ago?","c":"Colorado","w":["Nevada","Arizona","Wyoming"]},{"q":"Which state was the site of 'The Blast of 1888', where a freight train carrying 18 tons of explosives collided with a passenger train?","c":"Colorado","w":["New Mexico","Utah","Arizona"]},{"q":"Which state has a city that claims more Medal of Honor recipients per capita than any other city in the nation?","c":"Colorado","w":["Montana","Wyoming","Idaho"]},{"q":"Which state's city has run a Valentine's Day re-mailing program for decades, hand-stamping valentines with a special cachet?","c":"Colorado","w":["Idaho","Utah","Montana"]},{"q":"Which state was home to the first lollipop-making machine, patented in 1908?","c":"Connecticut","w":["Maine","Vermont","Rhode Island"]},{"q":"Which state has a region called the 'Gold Coast' known for its wealthy Manhattan commuters?","c":"Connecticut","w":["New Hampshire","Rhode Island","Maine"]},{"q":"Which state is the insurance capital of the United States, home to The Hartford and Travelers?","c":"Connecticut","w":["Maine","Rhode Island","Vermont"]},{"q":"Which state was home to Mark Twain for 20 years, during which he wrote The Adventures of Tom Sawyer and Huckleberry Finn?","c":"Connecticut","w":["New Hampshire","Vermont","Rhode Island"]},{"q":"Which state was home to the ashram where Weezer frontman Rivers Cuomo was raised?","c":"Connecticut","w":["Maine","New Hampshire","Vermont"]},{"q":"Which state's colonial constitution of 1638–1639 is considered the first written constitution in America?","c":"Connecticut","w":["New Hampshire","Rhode Island","Maine"]},{"q":"Which state has a legend about colonists hiding a royal charter in a hollow tree to protect their right to self-governance?","c":"Connecticut","w":["Maine","Vermont","Rhode Island"]},{"q":"Which state is where the first log cabins in the Americas were built, introduced by Swedish immigrants in the 1600s?","c":"Delaware","w":["New York","Maryland","Pennsylvania"]},{"q":"Which state was the first to designate an official state macroinvertebrate, choosing the stonefly?","c":"Delaware","w":["New Jersey","Maryland","New York"]},{"q":"Which state has a uniquely curved northern border drawn as a 12-mile-radius circle around a courthouse?","c":"Delaware","w":["New York","Pennsylvania","New Jersey"]},{"q":"Which state's official bug, the ladybug, was chosen through a petition by second-grade students?","c":"Delaware","w":["New Jersey","Maryland","Pennsylvania"]},{"q":"Which state shares a namesake river that is one of the few remaining large free-flowing rivers in the United States?","c":"Delaware","w":["Pennsylvania","Maryland","New York"]},{"q":"Which state was the first part of the continental United States to be visited and settled by Europeans?","c":"Florida","w":["North Carolina","West Virginia","Virginia"]},{"q":"Which state's city welcomed Cuban refugees fleeing Castro at a building known as the 'Ellis Island of the South'?","c":"Florida","w":["West Virginia","Virginia","Georgia"]},{"q":"Which state has a national park that is the only place on Earth where American alligators and crocodiles live side by side?","c":"Florida","w":["North Carolina","Georgia","Virginia"]},{"q":"Which state has a national park only reachable by boat or seaplane, home to the largest all-masonry fort in the Americas?","c":"Florida","w":["North Carolina","Georgia","West Virginia"]},{"q":"Which state has a national park that is 95% water, protecting part of the world's third-largest barrier reef?","c":"Florida","w":["Virginia","North Carolina","West Virginia"]},{"q":"Which state produces nearly half of all U.S. peanuts and leads the nation in pecans, yet ranks third in production of the fruit it's named after?","c":"Georgia","w":["West Virginia","Florida","Virginia"]},{"q":"Which state has a lost hydrogen bomb β€” 190 times more powerful than the one dropped on Nagasaki β€” sitting on its seafloor since 1958?","c":"Georgia","w":["Virginia","West Virginia","North Carolina"]},{"q":"Which state was the birthplace of Coca-Cola, invented by a pharmacist in 1886?","c":"Georgia","w":["West Virginia","North Carolina","Florida"]},{"q":"Which state has a famous theme park named for the six flags that historically flew over it?","c":"Georgia","w":["Virginia","Florida","North Carolina"]},{"q":"Which state was home to the world's first college chartered to grant degrees to women, and the birthplace of the first two sororities in American history?","c":"Georgia","w":["West Virginia","Florida","Virginia"]},{"q":"Which state has a national historical park with evidence of 17,000 years of continuous human habitation?","c":"Georgia","w":["Virginia","West Virginia","North Carolina"]},{"q":"Which state has a town that survived Sherman's March to the Sea β€” not because it was too beautiful to burn, but because of a personal connection to a pro-Union congressman?","c":"Georgia","w":["North Carolina","Florida","West Virginia"]},{"q":"Which state imported mongooses to control rats in its sugar fields, only to discover the animals are active at opposite times of day?","c":"Hawaii","w":["Idaho","Colorado","Alaska"]},{"q":"Which state has the world's longest and deepest lava tube, stretching over 40 miles?","c":"Hawaii","w":["Wyoming","Arizona","Montana"]},{"q":"Which state is the birthplace of surfing, where it was practiced by commoners and royalty alike?","c":"Hawaii","w":["Alaska","New Mexico","Colorado"]},{"q":"Which state once produced 80% of the world's pineapples but now grows almost none commercially?","c":"Hawaii","w":["Nevada","New Mexico","Utah"]},{"q":"Which state's official bird was once down to just 30 individuals and was brought back from the brink of extinction by a captive breeding program?","c":"Hawaii","w":["Idaho","Montana","Alaska"]},{"q":"Which state's land is still actively growing as ongoing volcanic eruptions add new acres to it?","c":"Hawaii","w":["Montana","Colorado","Utah"]},{"q":"Which state's national park contains two of the world's most active volcanoes and is a UNESCO World Heritage Site?","c":"Hawaii","w":["New Mexico","Idaho","Utah"]},{"q":"Which state had its first potato planted by a missionary in 1836, decades before farming became its agricultural identity?","c":"Idaho","w":["Nevada","Arizona","Utah"]},{"q":"Which state contains the deepest river gorge in North America, plunging nearly 8,000 feet β€” deeper than the Grand Canyon?","c":"Idaho","w":["Montana","Nevada","Colorado"]},{"q":"Which state was home to the world's first ski resort to use a chairlift, which opened in 1936?","c":"Idaho","w":["Wyoming","New Mexico","Nevada"]},{"q":"Which state was home to the world's first nuclear power plant to generate usable electricity, built in its desert in 1951?","c":"Idaho","w":["Nevada","Colorado","New Mexico"]},{"q":"Which state has a lava field so otherworldly that NASA used it to train Apollo astronauts before the moon landing?","c":"Idaho","w":["Wyoming","Utah","Arizona"]},{"q":"Which state was home to the world's first Ferris wheel, built for a World's Fair in 1893?","c":"Illinois","w":["Michigan","Ohio","Wisconsin"]},{"q":"Which state was home to Cahokia, the largest pre-Columbian city north of Mexico, which at its peak was larger than London?","c":"Illinois","w":["Ohio","Indiana","Michigan"]},{"q":"Which state was the first to ratify the 13th Amendment abolishing slavery, just two days after Congress passed it?","c":"Illinois","w":["Michigan","Indiana","Wisconsin"]},{"q":"Which state permanently reversed the flow of a major river in 1900 to protect its city's drinking water supply?","c":"Illinois","w":["Ohio","Wisconsin","Indiana"]},{"q":"Which state produces more nuclear power than any other in the United States?","c":"Illinois","w":["Michigan","Ohio","Wisconsin"]},{"q":"Which state is home to the world's largest sports venue by permanent seating capacity?","c":"Indiana","w":["Illinois","Michigan","Ohio"]},{"q":"Which state hosted the first professional baseball game played for pay, in 1871?","c":"Indiana","w":["Illinois","Wisconsin","Michigan"]},{"q":"Which state was home to the inventor of stainless steel, who also built one of America's first gasoline-powered automobiles?","c":"Indiana","w":["Ohio","Wisconsin","Illinois"]},{"q":"Which state's Great Lakes shoreline dunes have been called the birthplace of ecology?","c":"Indiana","w":["Michigan","Wisconsin","Ohio"]},{"q":"Which state was the birthplace of Orville Redenbacher, the popcorn pioneer who spent decades perfecting his hybrid kernel?","c":"Indiana","w":["Illinois","Michigan","Ohio"]},{"q":"Which state university's basement was home to the development of the world's first electronic digital computer?","c":"Iowa","w":["South Dakota","Minnesota","Nebraska"]},{"q":"Which state produces about one-third of the nation's pork and is home to more hogs than people?","c":"Iowa","w":["North Dakota","Nebraska","Minnesota"]},{"q":"Which state is home to the actual filming location of Field of Dreams, now one of the Midwest's most visited tourist sites?","c":"Iowa","w":["South Dakota","Minnesota","North Dakota"]},{"q":"Which state's city has been home to the Quaker Oats Company since 1873, earning it the title 'Oatmeal Capital of the World'?","c":"Iowa","w":["North Dakota","South Dakota","Nebraska"]},{"q":"Which state was nicknamed after Chief Black Hawk?","c":"Iowa","w":["Nebraska","Minnesota","South Dakota"]},{"q":"Which state has a national monument preserving prehistoric earthen mounds shaped like bears and birds?","c":"Iowa","w":["Nebraska","Minnesota","North Dakota"]},{"q":"Which state was home to the first Pizza Hut, opened in 1958 with a $600 loan from a mother?","c":"Kansas","w":["Oklahoma","Texas","Missouri"]},{"q":"Which state contains the geographic center of the contiguous 48 states, marked by a monument in a town of fewer than 200 people?","c":"Kansas","w":["Missouri","Oklahoma","Texas"]},{"q":"Which state sits atop the world's largest known reserves of helium?","c":"Kansas","w":["Missouri","Texas","Oklahoma"]},{"q":"Which state's city became the most famous cattle town in the American West after the railroad arrived in 1872?","c":"Kansas","w":["Texas","Oklahoma","Missouri"]},{"q":"Which state produces enough wheat each year to feed every person on Earth for roughly two weeks?","c":"Kansas","w":["Oklahoma","Missouri","Texas"]},{"q":"Which state is home to the world's longest known cave system, with over 400 miles of explored passages?","c":"Kentucky","w":["Louisiana","Alabama","Mississippi"]},{"q":"Which state produces approximately 95% of all bourbon whiskey in the world?","c":"Kentucky","w":["Tennessee","Louisiana","Alabama"]},{"q":"Which state has hosted horse racing's oldest continuously held major sporting event since 1875?","c":"Kentucky","w":["Mississippi","Louisiana","Tennessee"]},{"q":"Which state has a military installation that holds roughly half of all the U.S. Treasury's gold reserves?","c":"Kentucky","w":["Tennessee","Mississippi","Alabama"]},{"q":"Which state was the birthplace of both Abraham Lincoln and Confederate President Jefferson Davis?","c":"Kentucky","w":["Mississippi","Alabama","Louisiana"]},{"q":"Which state is the only one in the United States that bases its civil law on the Napoleonic Code?","c":"Louisiana","w":["Tennessee","Mississippi","Alabama"]},{"q":"Which state has been the home of Tabasco hot sauce production since 1868?","c":"Louisiana","w":["Tennessee","Arkansas","Mississippi"]},{"q":"Which state has a causeway that once held the world record as the longest bridge over water?","c":"Louisiana","w":["Alabama","Tennessee","Arkansas"]},{"q":"Which state loses 25 to 35 square miles of coastline every year β€” the fastest rate of land loss in North America?","c":"Louisiana","w":["Arkansas","Alabama","Mississippi"]},{"q":"Which state's city is the birthplace of jazz, where African rhythms and European brass band music collided at the turn of the 20th century?","c":"Louisiana","w":["Alabama","Mississippi","Tennessee"]},{"q":"Which state in the continental U.S. shares a border with only one other state?","c":"Maine","w":["Vermont","Massachusetts","Connecticut"]},{"q":"Which state produces roughly 99% of all wild blueberries grown in the United States?","c":"Maine","w":["New Hampshire","Vermont","Massachusetts"]},{"q":"Which state is the first place in the United States to see the sunrise each morning?","c":"Maine","w":["Vermont","Connecticut","New Hampshire"]},{"q":"Which state is the real-world home of Stephen King and the setting for most of his novels?","c":"Maine","w":["New Hampshire","Connecticut","Massachusetts"]},{"q":"Which state dominates U.S. lobster harvesting, accounting for roughly 80% of all lobster caught nationally?","c":"Maine","w":["Massachusetts","Connecticut","Vermont"]},{"q":"Which state was home to the first national park established east of the Mississippi River?","c":"Maine","w":["New Hampshire","Massachusetts","Vermont"]},{"q":"Which state's harbor battle inspired the writing of what became the U.S. national anthem?","c":"Maryland","w":["New York","New Jersey","Pennsylvania"]},{"q":"Which state sits along the largest estuary in the United States, famous for its blue crab harvest?","c":"Maryland","w":["New Jersey","Pennsylvania","Delaware"]},{"q":"Which state has been home to the U.S. Naval Academy since its founding in 1845?","c":"Maryland","w":["New York","Pennsylvania","Delaware"]},{"q":"Which state's border with Pennsylvania gave rise to the famous Mason-Dixon Line, originally surveyed to settle a land dispute?","c":"Maryland","w":["New Jersey","New York","Delaware"]},{"q":"Which state is home to the most-visited aquarium in the United States and the hospital most often ranked number one in the nation?","c":"Maryland","w":["Pennsylvania","New Jersey","New York"]},{"q":"Which state was the birthplace of basketball, invented in 1891 as an indoor winter activity?","c":"Massachusetts","w":["Vermont","Connecticut","Maine"]},{"q":"Which state is home to the oldest public school in the United States, founded in 1635?","c":"Massachusetts","w":["Vermont","Connecticut","New Hampshire"]},{"q":"Which state has more Dunkin' locations per capita than any other and was the chain's birthplace?","c":"Massachusetts","w":["Maine","Vermont","New Hampshire"]},{"q":"Which state was home to the first permanent English settlement in New England, established by Pilgrims in 1620?","c":"Massachusetts","w":["Connecticut","Maine","New Hampshire"]},{"q":"Which state is home to MIT, which has been affiliated with more Nobel Prize winners than any institution except the University of Chicago?","c":"Massachusetts","w":["Maine","Connecticut","Vermont"]},{"q":"Which state has a national seashore established by a president who was born there?","c":"Massachusetts","w":["New Hampshire","Vermont","Connecticut"]},{"q":"Which state has more freshwater coastline than any other except Alaska, with over 3,000 miles along four of the Great Lakes?","c":"Michigan","w":["Indiana","Wisconsin","Ohio"]},{"q":"Which state was home to the accidental invention of cornflakes at a health resort in 1894?","c":"Michigan","w":["Ohio","Illinois","Indiana"]},{"q":"Which state was home to Henry Ford's moving assembly line, which cut the price of a car down to $260?","c":"Michigan","w":["Indiana","Wisconsin","Illinois"]},{"q":"Which state has sand dunes rising up to 450 feet directly above the surface of a Great Lake?","c":"Michigan","w":["Illinois","Wisconsin","Ohio"]},{"q":"Which state was the birthplace of Motown Records, founded with an $800 family loan in 1959?","c":"Michigan","w":["Wisconsin","Ohio","Indiana"]},{"q":"Which state has 11,842 lakes of 10 acres or larger β€” more than California, Florida, and Hawaii combined?","c":"Minnesota","w":["North Dakota","South Dakota","Nebraska"]},{"q":"Which state is home to the company that invented both Scotch tape and Post-it Notes?","c":"Minnesota","w":["Nebraska","Iowa","South Dakota"]},{"q":"Which state contains the headwaters of the Mississippi River, where the great river is narrow enough to wade across in rubber boots?","c":"Minnesota","w":["Nebraska","Iowa","North Dakota"]},{"q":"Which state was the lifelong home of musician Prince, who recorded almost entirely within its borders?","c":"Minnesota","w":["South Dakota","North Dakota","Iowa"]},{"q":"Which state is home to the Mayo Clinic, the hospital most often ranked number one in the United States?","c":"Minnesota","w":["North Dakota","Nebraska","South Dakota"]},{"q":"Which state has a national park best experienced by boat, where nearly 40% of its acreage is lake?","c":"Minnesota","w":["South Dakota","Nebraska","Iowa"]},{"q":"Which state's Delta region is considered the birthplace of the blues?","c":"Mississippi","w":["Tennessee","Louisiana","Kentucky"]},{"q":"Which state was Elvis Presley's birthplace, where he was born in a two-room house his father built for $180?","c":"Mississippi","w":["Alabama","Kentucky","Louisiana"]},{"q":"Which state was the last to officially ratify the 13th Amendment abolishing slavery?","c":"Mississippi","w":["Louisiana","Alabama","Tennessee"]},{"q":"Which state was the birthplace of Jim Henson, creator of the Muppets?","c":"Mississippi","w":["Alabama","Tennessee","Kentucky"]},{"q":"Which state's city contains the highest concentration of antebellum plantation homes in the United States?","c":"Mississippi","w":["Tennessee","Kentucky","Louisiana"]},{"q":"Which state shares its name with the Ojibwe word for \"Great River,\" a waterway that drains 41% of the contiguous United States?","c":"Mississippi","w":["Alabama","Tennessee","Kentucky"]},{"q":"Which state's world's fair is credited with the invention of the ice cream cone in 1904?","c":"Missouri","w":["Kansas","Oklahoma","Texas"]},{"q":"Which state was the departure point for the Oregon Trail, the Santa Fe Trail, and the California Trail?","c":"Missouri","w":["Kansas","Texas","Oklahoma"]},{"q":"Which state was the birthplace of Mark Twain, who grew up along the Mississippi River and used it as the setting for his most famous novels?","c":"Missouri","w":["Texas","Oklahoma","Kansas"]},{"q":"Which state's city has more fountains than any city in the world except Rome?","c":"Missouri","w":["Oklahoma","Kansas","Texas"]},{"q":"Which state was the lifelong home of Harry S. Truman, the only 20th-century president without a college degree?","c":"Missouri","w":["Texas","Kansas","Oklahoma"]},{"q":"Which state has the smallest national park in the United States, anchored by a 630-foot stainless steel arch?","c":"Missouri","w":["Oklahoma","Texas","Kansas"]},{"q":"Which state has the largest grizzly bear population in the lower 48 states?","c":"Montana","w":["New Mexico","Utah","Arizona"]},{"q":"Which state's national park has lost over 80% of its named glaciers since the park was established in 1910?","c":"Montana","w":["Colorado","Nevada","Idaho"]},{"q":"Which state was the site of the Battle of Little Bighorn, where Lakota and Cheyenne warriors defeated Lt. Colonel Custer's forces?","c":"Montana","w":["New Mexico","Nevada","Utah"]},{"q":"Which state has nearly twice as many cattle as people?","c":"Montana","w":["Nevada","Colorado","Wyoming"]},{"q":"Which state is one of only two places on Earth that produce naturally occurring cornflower blue sapphires of gem quality?","c":"Montana","w":["Utah","New Mexico","Wyoming"]},{"q":"Which is the only state with a unicameral legislature, meaning its government runs with just one lawmaking chamber?","c":"Nebraska","w":["South Dakota","North Dakota","Minnesota"]},{"q":"Which state was the birthplace of Kool-Aid, invented in 1927 from a small-town mail-order business?","c":"Nebraska","w":["North Dakota","Iowa","South Dakota"]},{"q":"Which state has Chimney Rock, a narrow 325-foot spire that was the most consistently mentioned landmark in Oregon Trail pioneer journals?","c":"Nebraska","w":["South Dakota","Iowa","Minnesota"]},{"q":"Which state is home to Warren Buffett, who still lives in the same house he bought for $31,500 in 1958?","c":"Nebraska","w":["North Dakota","Minnesota","Iowa"]},{"q":"Which state hosts one of the most spectacular wildlife migrations in North America, where 500,000 sandhill cranes gather each spring?","c":"Nebraska","w":["Minnesota","North Dakota","South Dakota"]},{"q":"Which state has a national park commemorating the Homestead Act, which transferred about 10% of all U.S. land to settlers?","c":"Nebraska","w":["Iowa","South Dakota","North Dakota"]},{"q":"Which state is the most mountainous in the contiguous United States, with over 300 named mountain ranges?","c":"Nevada","w":["Wyoming","New Mexico","Utah"]},{"q":"Which state produces about 75% of all gold mined in the United States?","c":"Nevada","w":["Colorado","New Mexico","Idaho"]},{"q":"Which state's border with Arizona is marked by the Hoover Dam, the largest dam in the world when it was completed in 1935?","c":"Nevada","w":["Montana","New Mexico","Idaho"]},{"q":"Which state is home to Area 51, the classified Air Force facility that fueled decades of UFO speculation?","c":"Nevada","w":["Arizona","Colorado","Wyoming"]},{"q":"Which state's most famous city was largely built by organized crime after gambling was legalized in 1931?","c":"Nevada","w":["Montana","Colorado","Wyoming"]},{"q":"Which state's national park shelters Great Basin bristlecone pines, including one tree that lived nearly 5,000 years before it was cut down?","c":"Nevada","w":["New Mexico","Montana","Colorado"]},{"q":"Which small state holds the nation's first presidential primary election every four years?","c":"New Hampshire","w":["Massachusetts","Vermont","Maine"]},{"q":"Which state's mountain summit recorded a wind gust of 231 mph in 1934 β€” a world record that stood for 62 years?","c":"New Hampshire","w":["Vermont","Maine","Connecticut"]},{"q":"Which state was the first of the original 13 colonies to establish an independent government separate from British authority?","c":"New Hampshire","w":["Massachusetts","Connecticut","Maine"]},{"q":"Which state was the birthplace of Alan Shepard, the first American to travel to space?","c":"New Hampshire","w":["Vermont","Connecticut","Massachusetts"]},{"q":"Which state, along with Alaska, has neither a statewide income tax nor a statewide sales tax?","c":"New Hampshire","w":["Maine","Massachusetts","Connecticut"]},{"q":"Which state was home to Thomas Edison's famous invention factory, where he pledged a minor invention every ten days?","c":"New Jersey","w":["New York","Pennsylvania","Delaware"]},{"q":"Which state is the most densely populated in the United States, with over 1,200 people per square mile?","c":"New Jersey","w":["Pennsylvania","Delaware","Maryland"]},{"q":"Which state was the site of the first baseball game played under the modern Knickerbocker Rules, in 1846?","c":"New Jersey","w":["New York","Delaware","Maryland"]},{"q":"Which state was home to America's first boardwalk, built in 1870 to keep sand out of seaside hotel lobbies?","c":"New Jersey","w":["Pennsylvania","New York","Maryland"]},{"q":"Which state has more diners than any other, earning it the undisputed title of 'Diner Capital of the World'?","c":"New Jersey","w":["New York","Delaware","Pennsylvania"]},{"q":"Which state was the site of the world's first nuclear weapon detonation, in the desert at 5:29 AM on July 16, 1945?","c":"New Mexico","w":["Arizona","Idaho","Montana"]},{"q":"Which state's official state question asks you to choose between red or green chile sauce?","c":"New Mexico","w":["Idaho","Arizona","Montana"]},{"q":"Which state is home to the largest natural cave chamber in North America?","c":"New Mexico","w":["Wyoming","Colorado","Montana"]},{"q":"Which state has a Native American pueblo that has been continuously inhabited for over 1,000 years?","c":"New Mexico","w":["Wyoming","Colorado","Arizona"]},{"q":"Which state has more PhDs per capita than any other, driven by its concentration of national laboratories?","c":"New Mexico","w":["Montana","Utah","Idaho"]},{"q":"Which state built the Erie Canal, connecting the Atlantic Ocean to the Great Lakes and cutting shipping costs by 95%?","c":"New York","w":["New Jersey","Maryland","Delaware"]},{"q":"Which state is home to the Statue of Liberty, a gift from France completed in 1886?","c":"New York","w":["Pennsylvania","Maryland","New Jersey"]},{"q":"Which state has a subway system that runs 24 hours a day, 7 days a week, every day of the year?","c":"New York","w":["New Jersey","Delaware","Pennsylvania"]},{"q":"Which state's border waterfall moves more water than any other waterfall on Earth?","c":"New York","w":["Pennsylvania","Maryland","Delaware"]},{"q":"Which state's city hosted the first Macy's Thanksgiving Day Parade in 1924?","c":"New York","w":["Delaware","Maryland","New Jersey"]},{"q":"In a fitting twist, scientists at an upstate university β€” in the same state where the blight first arrived β€” developed 'Darling 54,' a genetically modified chestnut that could bring a functionally extinct species back from the dead. Which state?","c":"New York","w":["Pennsylvania","Maryland","New Jersey"]},{"q":"Which state was the site of the Wright Brothers' first successful powered airplane flights in 1903?","c":"North Carolina","w":["Florida","Virginia","West Virginia"]},{"q":"Which state produces more sweet potatoes than any other, growing roughly half the nation's entire supply?","c":"North Carolina","w":["Virginia","South Carolina","Florida"]},{"q":"Which state is home to the Biltmore Estate, the largest privately owned house in the United States?","c":"North Carolina","w":["West Virginia","South Carolina","Florida"]},{"q":"Which state shares the most visited national park in the United States?","c":"North Carolina","w":["Virginia","West Virginia","South Carolina"]},{"q":"Which state was the birthplace of presidents Andrew Jackson, James K. Polk, and Andrew Johnson?","c":"North Carolina","w":["West Virginia","Florida","Virginia"]},{"q":"Which state's badlands transformed a sickly young politician named Theodore Roosevelt into the conservation-minded president he became?","c":"North Dakota","w":["Nebraska","Iowa","Minnesota"]},{"q":"Which state sits atop the Bakken Formation, one of the largest oil deposits in the United States?","c":"North Dakota","w":["South Dakota","Iowa","Minnesota"]},{"q":"Which state leads the nation in sunflower production?","c":"North Dakota","w":["Nebraska","South Dakota","Minnesota"]},{"q":"Which state has a highway lined with the world's largest metal sculptures, created by a former teacher?","c":"North Dakota","w":["Iowa","Nebraska","South Dakota"]},{"q":"Which two states were admitted to the Union simultaneously on the same day in 1889, with a president reportedly shuffling their papers to keep the order secret?","c":"North Dakota","w":["Iowa","Minnesota","Nebraska"]},{"q":"Which state has produced more astronauts than any other, including both the first man to walk on the moon and the first American to orbit Earth?","c":"Ohio","w":["Michigan","Wisconsin","Illinois"]},{"q":"Which state was home to the Cincinnati Red Stockings, the first fully professional baseball team in the United States?","c":"Ohio","w":["Wisconsin","Michigan","Indiana"]},{"q":"Which state's city established the first ambulance service in the United States in 1865?","c":"Ohio","w":["Illinois","Indiana","Michigan"]},{"q":"Which state was the birthplace of seven U.S. presidents β€” more than any other?","c":"Ohio","w":["Indiana","Wisconsin","Illinois"]},{"q":"Which state's city is home to the Rock and Roll Hall of Fame?","c":"Ohio","w":["Michigan","Illinois","Wisconsin"]},{"q":"Which state has a national park named for a river so polluted it once caught fire, an event that helped spark the modern environmental movement?","c":"Ohio","w":["Indiana","Wisconsin","Michigan"]},{"q":"Which state has more federally recognized Native American tribes than any other?","c":"Oklahoma","w":["Kansas","Texas","Missouri"]},{"q":"Which state was the site of the Land Run of 1889, where settlers raced to claim two million acres of land at a single pistol shot?","c":"Oklahoma","w":["Kansas","Missouri","Texas"]},{"q":"Which state is the only one where active oil wells operate on the grounds of the state capitol building?","c":"Oklahoma","w":["Missouri","Texas","Kansas"]},{"q":"Which state has more miles of the original Route 66 than any other?","c":"Oklahoma","w":["Texas","Kansas","Missouri"]},{"q":"Which state lends its name to the 1943 Broadway musical that revolutionized American musical theater?","c":"Oklahoma","w":["Missouri","Kansas","Texas"]},{"q":"Which state was home to the smallest national park ever created, at just 912 acres?","c":"Oklahoma","w":["Texas","Missouri","Kansas"]},{"q":"Which state is home to the deepest lake in the United States, formed when an ancient volcano collapsed roughly 7,700 years ago?","c":"Oregon","w":["Wyoming","California","Arizona"]},{"q":"Which state is the only one with a state flag that has a different design on each side?","c":"Oregon","w":["California","Idaho","Colorado"]},{"q":"Which state was the birthplace of Nike, co-founded by a track athlete and his coach in 1964?","c":"Oregon","w":["Washington","Montana","New Mexico"]},{"q":"Which state has more ghost towns than any other, with over 200 abandoned settlements scattered across its interior?","c":"Oregon","w":["Wyoming","Idaho","Colorado"]},{"q":"Which state's Coast Range contains temperate rainforests that receive more than 100 inches of rainfall per year?","c":"Oregon","w":["Washington","Utah","Montana"]},{"q":"Which state's city was where both the Declaration of Independence and the U.S. Constitution were drafted and signed?","c":"Pennsylvania","w":["New Jersey","New York","Maryland"]},{"q":"Which state's university was home to ENIAC, the world's first general-purpose electronic computer, built in 1945?","c":"Pennsylvania","w":["Delaware","New Jersey","New York"]},{"q":"Which state has a town built entirely by a chocolate company, where the street lamps are shaped like Hershey's Kisses?","c":"Pennsylvania","w":["Delaware","Maryland","New Jersey"]},{"q":"Which state is home to the largest Amish community in the world?","c":"Pennsylvania","w":["New York","Maryland","Delaware"]},{"q":"Which state has hosted Groundhog Day ceremonies since 1887, featuring a groundhog whose shadow predictions are broadcast worldwide?","c":"Pennsylvania","w":["New Jersey","Maryland","New York"]},{"q":"Which is the smallest state in the United States β€” small enough that 425 of them would fit inside Alaska?","c":"Rhode Island","w":["Connecticut","Maine","New Hampshire"]},{"q":"Which state was both the first colony to declare independence from Britain and the last to ratify the U.S. Constitution?","c":"Rhode Island","w":["Maine","Vermont","Connecticut"]},{"q":"Which state hosted the first U.S. Open tennis tournament in 1881?","c":"Rhode Island","w":["Vermont","Connecticut","New Hampshire"]},{"q":"Which state is home to The Breakers, the most spectacular example of Gilded Age architecture in the country?","c":"Rhode Island","w":["Maine","New Hampshire","Vermont"]},{"q":"Which state has a frozen lemonade brand so beloved it's considered part of local identity and appears on a state licensing exam?","c":"Rhode Island","w":["New Hampshire","Connecticut","Maine"]},{"q":"Which state was the site of the first shots of the Civil War, fired at Fort Sumter in 1861?","c":"South Carolina","w":["Virginia","Florida","North Carolina"]},{"q":"Which state is home to the Angel Oak, a Southern live oak estimated to be 400 to 500 years old?","c":"South Carolina","w":["West Virginia","North Carolina","Florida"]},{"q":"Which state actually produces more peaches than Georgia, despite Georgia's famous claim to the fruit?","c":"South Carolina","w":["Virginia","Florida","North Carolina"]},{"q":"Which state's Sea Islands are home to the Gullah Geechee people, who developed one of the most distinctive African-American cultures in the nation?","c":"South Carolina","w":["Florida","Virginia","West Virginia"]},{"q":"Which state's city was the wealthiest in North America before the Revolutionary War, built on rice and indigo cultivation by enslaved labor?","c":"South Carolina","w":["Virginia","North Carolina","West Virginia"]},{"q":"Which state's national park protects the largest intact expanse of old-growth bottomland hardwood forest in the southeastern United States?","c":"South Carolina","w":["North Carolina","Florida","West Virginia"]},{"q":"Which state is home to Mount Rushmore, whose carving took 14 years and used dynamite to remove 90% of the rock?","c":"South Dakota","w":["Nebraska","North Dakota","Minnesota"]},{"q":"Which state's Badlands form one of the richest fossil beds in the world, preserving ancient mammals from 23 to 35 million years ago?","c":"South Dakota","w":["North Dakota","Iowa","Nebraska"]},{"q":"Which state's gold rush town was where Wild Bill Hickok was shot while holding the poker hand known as the dead man's hand?","c":"South Dakota","w":["Nebraska","Iowa","Minnesota"]},{"q":"Which state is home to a mountain carving that, when completed, will be the largest sculpture in the world?","c":"South Dakota","w":["North Dakota","Minnesota","Iowa"]},{"q":"Which state has a roadside pharmacy-turned-tourist-empire that built a global following by offering free ice water to highway travelers?","c":"South Dakota","w":["Minnesota","North Dakota","Nebraska"]},{"q":"Which state has more documented cave systems than any other, with over 10,000 caves?","c":"Tennessee","w":["Louisiana","Alabama","Mississippi"]},{"q":"Which state is home to Graceland, the second most visited house in the United States?","c":"Tennessee","w":["Alabama","Kentucky","Mississippi"]},{"q":"Which state produces a whiskey that legally can't be called bourbon because of a charcoal-filtering process called the Lincoln County Process?","c":"Tennessee","w":["Kentucky","Louisiana","Mississippi"]},{"q":"Which state's mountains are named for the natural blue haze produced by the trees themselves, giving the ridges a perpetually misty look?","c":"Tennessee","w":["Alabama","Louisiana","Kentucky"]},{"q":"Which state's city is home to Music Row, where the majority of country music has been recorded for over 50 years?","c":"Tennessee","w":["Mississippi","Louisiana","Alabama"]},{"q":"Which state was once an independent nation for nearly 10 years before joining the United States?","c":"Texas","w":["Kansas","Missouri","Oklahoma"]},{"q":"Which state was the birthplace of Dr Pepper, invented by a pharmacist in 1885 β€” making it the oldest major soft drink in the United States?","c":"Texas","w":["Missouri","Oklahoma","Kansas"]},{"q":"Which state has a ranch covering 825,000 acres β€” larger than the entire state of Rhode Island?","c":"Texas","w":["Oklahoma","Kansas","Missouri"]},{"q":"Which state has a national park along the Rio Grande with some of the darkest skies in the continental United States, where the naked eye can see the Andromeda Galaxy?","c":"Texas","w":["Missouri","Kansas","Oklahoma"]},{"q":"Which state produces more wind energy than any other in the United States, and more than most countries in the world?","c":"Texas","w":["Oklahoma","Missouri","Kansas"]},{"q":"Which state has five national parks within a compact area, marketed together as 'The Mighty Five'?","c":"Utah","w":["Idaho","Arizona","Nevada"]},{"q":"Which state was the site where the two ends of the transcontinental railroad met in 1869, completing the first rail route across America?","c":"Utah","w":["Montana","Nevada","Idaho"]},{"q":"Which state's great saltwater lake has lost roughly 73% of its historic volume since the 1980s?","c":"Utah","w":["Arizona","Colorado","Idaho"]},{"q":"Which state's salt flats have been the site of land speed records since the 1930s?","c":"Utah","w":["Wyoming","Arizona","Montana"]},{"q":"Which state shares Monument Valley, the most-filmed landscape in the world, whose red sandstone buttes defined the look of the classic Western?","c":"Utah","w":["New Mexico","Arizona","Montana"]},{"q":"Which state was an independent republic for 14 years before joining the United States, with its own constitution, currency, and postal service?","c":"Vermont","w":["Massachusetts","Connecticut","Maine"]},{"q":"Which state produces approximately half of all maple syrup made in the United States?","c":"Vermont","w":["Connecticut","Maine","New Hampshire"]},{"q":"Which state was the birthplace of Ben & Jerry's ice cream, founded in a renovated gas station in 1978?","c":"Vermont","w":["Maine","Massachusetts","New Hampshire"]},{"q":"Which state was one of the first to ban highway billboards, prohibiting them in 1968?","c":"Vermont","w":["Massachusetts","Connecticut","New Hampshire"]},{"q":"Which state has the smallest state capital in the United States by population β€” and the only one without a McDonald's?","c":"Vermont","w":["Maine","New Hampshire","Massachusetts"]},{"q":"Which state was the birthplace of more U.S. presidents than any other, with eight born on its soil?","c":"Virginia","w":["North Carolina","Florida","West Virginia"]},{"q":"Which state was the site of Jamestown, the first permanent English settlement in North America, established in 1607?","c":"Virginia","w":["West Virginia","Florida","South Carolina"]},{"q":"Which state was the site of the first Thanksgiving in American history, celebrated in 1619 β€” more than two years before the Pilgrims landed?","c":"Virginia","w":["North Carolina","South Carolina","Florida"]},{"q":"Which state is home to the Pentagon, the world's largest office building with 17.5 miles of corridors?","c":"Virginia","w":["West Virginia","Florida","South Carolina"]},{"q":"Which state's national park was created during the New Deal by relocating over 400 mountain families from their ancestral homes?","c":"Virginia","w":["North Carolina","Florida","West Virginia"]},{"q":"Which state was the site of the most destructive volcanic eruption in the recorded history of the contiguous United States?","c":"Washington","w":["California","Oregon","Idaho"]},{"q":"Which state produces approximately 70% of all apples grown in the United States?","c":"Washington","w":["Oregon","Wyoming","New Mexico"]},{"q":"Which state is home to the first Starbucks, opened at a famous market in 1971?","c":"Washington","w":["California","New Mexico","Idaho"]},{"q":"Which state is home to the headquarters of Microsoft, Amazon, and Boeing β€” the only state to host all three tech and aerospace giants?","c":"Washington","w":["Oregon","Utah","Arizona"]},{"q":"Which state has the wettest region in the contiguous United States, receiving up to 14 feet of rainfall per year?","c":"Washington","w":["California","Colorado","Oregon"]},{"q":"Which is the only state in the United States formed by seceding from another state?","c":"West Virginia","w":["North Carolina","Florida","South Carolina"]},{"q":"Which state is home to the longest steel arch bridge in the Western Hemisphere?","c":"West Virginia","w":["South Carolina","North Carolina","Virginia"]},{"q":"Which state's luxury resort concealed a secret underground bunker built to shelter all 535 members of Congress during a nuclear attack?","c":"West Virginia","w":["North Carolina","Virginia","Florida"]},{"q":"Which state has the highest mean elevation of any state east of the Mississippi River?","c":"West Virginia","w":["Virginia","South Carolina","Florida"]},{"q":"Which state became the home of the country's 63rd national park in 2020, protecting one of the oldest rivers in the world?","c":"West Virginia","w":["South Carolina","Florida","North Carolina"]},{"q":"Which state was home to two army deserters who famously lived inside a massive hollow sycamore tree for three years in the 1760s?","c":"West Virginia","w":["Virginia","Florida","South Carolina"]},{"q":"Which state produces approximately 25% of all cheese made in the United States?","c":"Wisconsin","w":["Indiana","Michigan","Ohio"]},{"q":"Which state's small schoolhouse was the founding location of the Republican Party in 1854?","c":"Wisconsin","w":["Indiana","Illinois","Michigan"]},{"q":"Which state was home to the first kindergarten in the United States, established in 1856 by a German immigrant?","c":"Wisconsin","w":["Ohio","Illinois","Indiana"]},{"q":"Which state's city did Harry Houdini consider his hometown, where his father served as a rabbi?","c":"Wisconsin","w":["Michigan","Illinois","Ohio"]},{"q":"Which state was the founding home of the Ringling Brothers Circus, started by five brothers in 1884?","c":"Wisconsin","w":["Indiana","Michigan","Ohio"]},{"q":"Which state has lake sea caves that visitors can walk into on foot β€” but only in the coldest winters when the water freezes over?","c":"Wisconsin","w":["Michigan","Illinois","Indiana"]},{"q":"Which state was the first to grant women the right to vote, doing so in 1869 β€” more than 50 years before the 19th Amendment?","c":"Wyoming","w":["Arizona","Utah","Montana"]},{"q":"Which state's national park sits atop one of the largest active volcanic systems on Earth?","c":"Wyoming","w":["Nevada","Colorado","Idaho"]},{"q":"Which is the least populous state in the United States, with fewer than 600,000 residents?","c":"Wyoming","w":["Idaho","Utah","Nevada"]},{"q":"Which state is home to Devils Tower, the first U.S. National Monument, designated by Theodore Roosevelt in 1906?","c":"Wyoming","w":["New Mexico","Utah","Nevada"]},{"q":"Which state has more pronghorn antelope than people, with roughly 400,000 animals that can sprint at 55 mph?","c":"Wyoming","w":["Nevada","Arizona","Utah"]}];

// ── Quiz builder ──────────────────────────────────────────────────────────────
function createFactMapQuiz() {
  var form = FormApp.create(CONFIG.title);
  form.setDescription(CONFIG.description);
  form.setIsQuiz(true);
  form.setShuffleQuestions(CONFIG.shuffleQuestions);
  form.setCollectEmail(false);
  form.setLimitOneResponsePerUser(false);

  // Pick questions
  var pool     = CONFIG.shuffleQuestions ? shuffleArr(QUESTIONS.slice()) : QUESTIONS.slice();
  var selected = pool.slice(0, Math.min(CONFIG.questionCount, pool.length));

  for (var i = 0; i < selected.length; i++) {
    var q      = selected[i];
    var item   = form.addMultipleChoiceItem();
    item.setTitle(q.q);

    var answers = CONFIG.shuffleAnswers
      ? shuffleArr([q.c].concat(q.w))
      : [q.c].concat(q.w);

    item.setChoices(answers.map(function(a) {
      return item.createChoice(a, a === q.c);
    }));
    item.setPoints(CONFIG.pointsPerQuestion);
    item.setRequired(true);
    item.setFeedbackForCorrect(
      FormApp.createFeedback().setText('βœ“ Correct!').build()
    );
    item.setFeedbackForIncorrect(
      FormApp.createFeedback()
        .setText('The correct answer is ' + q.c + '. Learn more at factmap.us')
        .build()
    );
  }

  var studentUrl = form.getPublishedUrl();
  var editUrl    = form.getEditUrl();

  Logger.log('βœ“ Quiz created β€” ' + selected.length + ' questions');
  Logger.log('Student link : ' + studentUrl);
  Logger.log('Edit link    : ' + editUrl);

  // Show result dialog
  try {
    var html = HtmlService.createHtmlOutput(
      '<div style="font-family:sans-serif;padding:8px">' +
      '<h3 style="color:#2e7d32;margin-top:0">βœ“ Quiz Created!</h3>' +
      '<p><strong>Share with students:</strong><br>' +
      '<a href="' + studentUrl + '" target="_blank">' + studentUrl + '</a></p>' +
      '<p><strong>Edit the quiz:</strong><br>' +
      '<a href="' + editUrl + '" target="_blank">' + editUrl + '</a></p>' +
      '<hr style="border:none;border-top:1px solid #eee">' +
      '<p style="color:#666;font-size:12px;margin-bottom:0">' +
      'In Google Classroom: + Create β†’ Assignment β†’ Add β†’ Google Drive β†’ select the form β†’ change type to <strong>Quiz assignment</strong>.' +
      '</p></div>'
    ).setWidth(500).setHeight(260);
    SpreadsheetApp.getUi().showModalDialog(html, 'FactMap Quiz Ready!');
  } catch(e) {
    // Running from script.google.com directly β€” check View β†’ Logs for your URLs
    Browser.msgBox('Quiz Created! Check View β†’ Logs for your form URLs.');
  }
}

function shuffleArr(arr) {
  var a = arr.slice();
  for (var i = a.length - 1; i > 0; i--) {
    var j = Math.floor(Math.random() * (i + 1));
    var t = a[i]; a[i] = a[j]; a[j] = t;
  }
  return a;
}