Skip to content

MaxFroehlich1410/cursor_hackaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

WikiGuess

Guess the Wikipedia page using as few sentences as possible.

How it works

  • Fetches a random Wikipedia article (skips disambiguation and very short pages)
  • Extracts plaintext, splits into sentences, and filters out title-revealing sentences
  • Shows one sentence first, then you can reveal more hints
  • Enter your guess (article title). Capitalization and punctuation don’t matter
  • Fewer hints used means a better score. Your best score is saved locally

Run locally

You can open index.html directly in a modern browser, or serve it locally (recommended for API CORS reliability):

Python

python3 -m http.server 8000 --directory .

Open http://localhost:8000/.

Node (serve)

npx --yes serve -l 8000 .

Open http://localhost:8000/.

Notes

  • Uses MediaWiki Action API with origin=* for CORS
  • Avoids disambiguation pages via pageprops and heuristic filtering
  • Sentences are filtered to reduce obvious title leaks and very short lines

Debugging a specific title

Append ?debugTitle=Albert Einstein to the URL to test a specific page.

About

Cursor Hackathon Berlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published