Skip to content

kvinther/turtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐢 TURTLE - Danish Word Game

A Danish Wordle-like game with downvote tracking functionality.

🚀 Quick Start

1. Install Dependencies

npm install

2. Start the Server

npm start

3. Play the Game

Open your browser and go to: http://localhost:3000

📁 Project Structure

  • index.html - Main game interface
  • server.js - Node.js backend server
  • words.txt - Curated words for secret selection (10,919 words)
  • possible_words.txt - All valid words for validation (10,924 words)
  • downvoted_words.txt - Log of downvoted words (created automatically)

🎮 How to Play

  1. Guess the 5-letter Danish word in 6 attempts
  2. Green = correct letter in correct position
  3. Orange = letter exists but wrong position
  4. Black = letter not in the word
  5. Use keyboard or mouse to input letters
  6. Press Enter to submit guesses
  7. Downvote words you don't like after each game

🔧 API Endpoints

  • POST /api/downvote - Save a downvoted word
  • GET /api/download-downvotes - Download all downvoted words as .txt file
  • GET /api/downvote-stats - Get statistics about downvoted words

📊 Features

  • Keyboard Navigation: Arrow keys, spacebar, delete/backspace
  • Mouse Support: Click squares to select them
  • Word Validation: 10,000+ valid Danish words
  • Downvote System: Downvote problematic words
  • Responsive Design: Works on desktop and mobile
  • Instant Restart: Press Enter to start new game

🛠️ Development

The server automatically serves static files and provides the downvote API. All downvoted words are saved to downvoted_words.txt with timestamps.

📝 Word Lists

  • Secret words are selected from the curated words.txt list
  • Player guesses are validated against the comprehensive possible_words.txt list
  • This ensures good gameplay while accepting a wide range of valid words

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published