/
VictoriaKoltsova
/
AI_2026_Module2_Project2
Обзор
Документация
Войти
/
VictoriaKoltsova
/
AI_2026_Module2_Project2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
data/levels.js
230 строк
9 KB
moskoltsova2009-ai
Build UK Quest game platform
09 авг 2026, 23:28
09 авг 2026, 23:28
54234c0
Код
Авторство
О чём код?
(() => { const GAME_LIMITS = { targetWordXP: 5, vocabularyXP: 10, bonusCoins: 2, levelCompleteXP: 100, levelCompleteCoins: 30, hintCost: 50, cityRewards: { London: 250, Edinburgh: 350, Oxford: 500 }, }; const CITIES = [ { name: "London", code: "LON", levels: [1, 2, 3, 4, 5], firstLevel: 1, achievement: "LONDON_EXPLORER", reward: 250 }, { name: "Edinburgh", code: "EDI", levels: [6, 7, 8, 9, 10], firstLevel: 6, achievement: "SCOTTISH_EXPLORER", reward: 350 }, { name: "Oxford", code: "OXF", levels: [11, 12, 13, 14, 15], firstLevel: 11, achievement: "OXFORD_SCHOLAR", reward: 500 }, ]; const LEVELS = [ { id: 1, city: "London", landmark: "Big Ben", image: "../assets/images/landmarks/london/big-ben.jpg", code: "LON · 01", letters: ["P", "L", "A", "N", "E", "T"], targetWords: ["PLANET", "PLANE", "PLANT", "LATE"], bonusWords: ["PLAN", "LANE", "LEAN", "TALE"], vocabularyWords: ["PLANET", "PLANE", "PLANT", "LATE"], fact: "Big Ben is the nickname of the Great Bell inside the clock tower.", fallbackLayout: [ { word: "PLANET", row: 3, col: 0, direction: "across" }, { word: "PLANE", row: 3, col: 0, direction: "down" }, { word: "PLANT", row: 0, col: 3, direction: "down" }, { word: "LATE", row: 1, col: 3, direction: "across" }, ], }, { id: 2, city: "London", landmark: "Tower Bridge", image: "../assets/images/landmarks/london/tower-bridge.jpg", code: "LON · 02", letters: ["M", "A", "R", "K", "E", "T"], targetWords: ["MARKET", "MAKER", "TEAM", "RATE"], bonusWords: ["TAKE", "MAKE", "MEAT", "TERM"], vocabularyWords: ["MARKET", "MAKER", "TEAM", "RATE"], fact: "Tower Bridge opens in the middle so tall boats can travel along the Thames.", fallbackLayout: [ { word: "MARKET", row: 0, col: 0, direction: "across" }, { word: "MAKER", row: 0, col: 0, direction: "down" }, { word: "TEAM", row: 0, col: 5, direction: "down" }, { word: "RATE", row: 2, col: 4, direction: "across" }, ], }, { id: 3, city: "London", landmark: "London Eye", image: "../assets/images/landmarks/london/london-eye.jpg", code: "LON · 03", letters: ["G", "A", "R", "D", "E", "N"], targetWords: ["GARDEN", "DANGER", "RANGE", "DEAR", "READ"], bonusWords: ["NEAR", "GEAR", "EARN", "AGE"], vocabularyWords: ["GARDEN", "DANGER", "RANGE", "DEAR", "READ"], fact: "The London Eye has 32 capsules, one for each London borough.", fallbackLayout: [ { word: "GARDEN", row: 2, col: 0, direction: "across" }, { word: "DANGER", row: 2, col: 3, direction: "down" }, { word: "RANGE", row: 0, col: 5, direction: "down" }, { word: "DEAR", row: 6, col: 2, direction: "across" }, { word: "READ", row: 0, col: 5, direction: "across" }, ], }, { id: 4, city: "London", landmark: "Buckingham Palace", image: "../assets/images/landmarks/london/buckingham-palace.jpg", code: "LON · 04", letters: ["S", "T", "R", "E", "A", "M"], targetWords: ["STREAM", "MASTER", "STEAM", "TEAM", "STAR"], bonusWords: ["RATE", "REST", "SAME", "EAST"], vocabularyWords: ["STREAM", "MASTER", "STEAM", "TEAM", "STAR"], fact: "Buckingham Palace is the monarch's official London residence.", }, { id: 5, city: "London", landmark: "Westminster Abbey", image: "../assets/images/landmarks/london/westminster-abbey.jpg", code: "LON · 05", letters: ["F", "R", "I", "E", "N", "D"], targetWords: ["FRIEND", "FIND", "FINE", "RIDE", "FIRE"], bonusWords: ["DINER", "DIRE", "RED", "END"], vocabularyWords: ["FRIEND", "FIND", "FINE", "RIDE", "FIRE"], fact: "British kings and queens have their coronation ceremonies in Westminster Abbey.", }, { id: 6, city: "Edinburgh", landmark: "Edinburgh Castle", image: "../assets/images/landmarks/edinburgh/edinburgh-castle.jpg", code: "EDI · 06", letters: ["C", "A", "S", "T", "L", "E"], targetWords: ["CASTLE", "STALE", "TALE", "SEAT", "LAST"], bonusWords: ["EAST", "SALE", "CASE", "SEA"], vocabularyWords: ["CASTLE", "STALE", "TALE", "SEAT", "LAST"], fact: "Edinburgh Castle stands high above the city on an ancient volcanic rock.", }, { id: 7, city: "Edinburgh", landmark: "Royal Mile", image: "../assets/images/landmarks/edinburgh/royal-mile.jpg", code: "EDI · 07", letters: ["T", "R", "A", "V", "E", "L"], targetWords: ["TRAVEL", "LATER", "ALERT", "REAL", "RATE"], bonusWords: ["TALE", "TEAR", "LATE", "EAR"], vocabularyWords: ["TRAVEL", "LATER", "ALERT", "REAL", "RATE"], fact: "The Royal Mile connects Edinburgh Castle with the Palace of Holyroodhouse.", }, { id: 8, city: "Edinburgh", landmark: "Arthur's Seat", image: "../assets/images/landmarks/edinburgh/arthurs-seat.jpg", code: "EDI · 08", letters: ["N", "A", "T", "U", "R", "E"], targetWords: ["NATURE", "TUNE", "TURN", "NEAR", "TRUE"], bonusWords: ["RATE", "EARN", "RUNE", "ANT"], vocabularyWords: ["NATURE", "TUNE", "TURN", "NEAR", "TRUE"], fact: "Arthur's Seat is an ancient hill with wide views across Edinburgh.", }, { id: 9, city: "Edinburgh", landmark: "Palace of Holyroodhouse", image: "../assets/images/landmarks/edinburgh/holyroodhouse.jpg", code: "EDI · 09", letters: ["W", "I", "N", "T", "E", "R"], targetWords: ["WINTER", "WRITE", "TWIN", "WIRE", "TIRE"], bonusWords: ["NEW", "WIN", "WET", "TEN"], vocabularyWords: ["WINTER", "WRITE", "TWIN", "WIRE", "TIRE"], fact: "The Palace of Holyroodhouse is the monarch's official residence in Scotland.", }, { id: 10, city: "Edinburgh", landmark: "Scottish National Gallery", image: "../assets/images/landmarks/edinburgh/scottish-national-gallery.jpg", code: "EDI · 10", letters: ["A", "R", "T", "I", "S", "T"], targetWords: ["ARTIST", "START", "STAR", "AIR", "SIT", "ART"], bonusWords: ["SIR", "SAT", "ITS"], vocabularyWords: ["ARTIST", "START", "STAR", "AIR", "SIT", "ART"], fact: "The Scottish National Gallery displays important art in the centre of Edinburgh.", }, { id: 11, city: "Oxford", landmark: "University of Oxford", image: "../assets/images/landmarks/oxford/university-of-oxford.jpg", code: "OXF · 11", letters: ["C", "O", "U", "R", "S", "E"], targetWords: ["COURSE", "SCORE", "ROSE", "SURE", "USER"], bonusWords: ["SOUR", "CORE", "CURE", "OUR"], vocabularyWords: ["COURSE", "SCORE", "ROSE", "SURE", "USER"], fact: "Oxford is one of the oldest universities in the English-speaking world.", }, { id: 12, city: "Oxford", landmark: "Bodleian Library", image: "../assets/images/landmarks/oxford/bodleian-library.jpg", code: "OXF · 12", letters: ["B", "R", "I", "G", "H", "T"], targetWords: ["BRIGHT", "RIGHT", "BIRTH", "BIG", "HIT"], bonusWords: ["BIT", "RIB"], vocabularyWords: ["BRIGHT", "RIGHT", "BIRTH", "BIG", "HIT"], fact: "The Bodleian is a historic research library with millions of books.", }, { id: 13, city: "Oxford", landmark: "Radcliffe Camera", image: "../assets/images/landmarks/oxford/radcliffe-camera.jpg", code: "OXF · 13", // The source list needs a second L for TELL; keep it as a separate physical tile. letters: ["L", "E", "T", "T", "E", "R", "L"], targetWords: ["LETTER", "TREE", "TELL", "REEL", "LET"], bonusWords: ["TEE", "EEL"], vocabularyWords: ["LETTER", "TREE", "TELL", "REEL", "LET"], fact: "The round Radcliffe Camera is one of Oxford's most famous library buildings.", }, { id: 14, city: "Oxford", landmark: "Bridge of Sighs", image: "../assets/images/landmarks/oxford/bridge-of-sighs.jpg", code: "OXF · 14", letters: ["C", "R", "E", "A", "T", "E"], targetWords: ["CREATE", "REACT", "TRACE", "CARE", "RACE"], bonusWords: ["TREE", "RATE", "TEAR", "CART", "CAT"], vocabularyWords: ["CREATE", "REACT", "TRACE", "CARE", "RACE"], fact: "Oxford's Bridge of Sighs joins two parts of Hertford College above a street.", }, { id: 15, city: "Oxford", landmark: "Christ Church", image: "../assets/images/landmarks/oxford/christ-church.jpg", code: "OXF · 15", letters: ["D", "I", "N", "N", "E", "R"], targetWords: ["DINNER", "INNER", "DINE", "RIDE", "NINE", "RED"], bonusWords: ["DINER", "DIRE", "RIND", "END"], vocabularyWords: ["DINNER", "INNER", "DINE", "RIDE", "NINE", "RED"], fact: "Christ Church is both an Oxford college and the home of a cathedral.", }, ]; function getLevel(levelId) { return LEVELS.find((level) => level.id === Number(levelId)) || LEVELS[0]; } function getCity(cityName) { return CITIES.find((city) => city.name === cityName) || CITIES[0]; } window.UKQuestData = { ...(window.UKQuestData || {}), GAME_LIMITS, CITIES, LEVELS, getLevel, getCity }; })();