Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 3.02 KB

README.md

File metadata and controls

46 lines (38 loc) · 3.02 KB

Vietboard - Ô Chữ Tiếng Việt

This is a Vietnamese Scrabble-type game implemented in pure JavaScript and played against the computer with a very fast engine. You can play the game online or download the code and open index.html in your browser.

The code comprises an engine (engine.js) that does the game logic and a user interface (ui.js) that renders the board and manages user interactions. This design allows one to easily create alternative user interfaces. The code is also designed to be easily localized to other languages and currently supports English, Russian, Spanish, and Vietnamese (this version).

The fast game play is made possible by leveraging Regular Expressions to conduct searches. The current UI makes use of the excellent REDIPS.drag drag-and-drop library. Other credits go to Sizzle for the CSS selector engine, subModal for the modal dialogs, Hồ Ngọc Đức for the original word list (continuously being updated), and VDict for the word definitions.

Corrections and comments are welcome by sending an email or creating an Issue.

Major changes from JScrab

  • Localized to Vietnamese language
  • Added ability to use compound words via the Space tile (fundamental to Vietnamese vocabulary)
  • Optimized images using RIOT
  • Changed opponent tile border to solid for consistency
  • Moved index.html to root
  • Added sound effects
  • Deleted unused JavaScript files
  • Optimized JavaScript code and prepared it for minification
  • Added local build script (concatenates and minifies)
  • Fixed a couple of missing translation strings and miscellaneous typos
  • Increased rack size to eight tiles (improves playability in Vietnamese)
  • Replaced hard-coded g_wstr with a dynamically created list
  • Improved modal dialog spacing
  • Added subtle animation and shadow to modal dialog
  • Added Play Again button to the "game over" dialog
  • Increased computer AI so it can create up to 15-letter words
  • Added AJAX request to retrieve word definitions from the internet
  • Improved modal dialog sizing and centering logic
  • Increased computer playing speed
  • Added tooltips for icons and computer level
  • Added ability to close modals by pressing the Escape key
  • Added ability to remember selected computer level
  • Added feedback footer link
  • Increased to 10 difficulty levels that have a smoother progression
  • Fixed move cursor shown for opponent tiles
  • Added icon effect on mouse hover
  • Added favicon for all platforms
  • Added Open Graph and JSON-LD tags (SEO)
  • Added language selector for the UI

Dependencies for local build