{"id":21074045,"url":"https://github.com/tomaztk/tsqlwordle","last_synced_at":"2025-10-13T03:26:09.703Z","repository":{"id":131357081,"uuid":"445854594","full_name":"tomaztk/tsqlwordle","owner":"tomaztk","description":"T-SQL Wordle","archived":false,"fork":false,"pushed_at":"2022-01-19T15:44:12.000Z","size":289,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T03:26:47.793Z","etag":null,"topics":["game","sql","sql-game","sql-procedures","sql-programming","sql-query","sql-server","sqldatabase","t-sql","wordle"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomaztk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-08T15:22:24.000Z","updated_at":"2022-01-10T04:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6256efb-5789-452b-8a95-98c62644d14d","html_url":"https://github.com/tomaztk/tsqlwordle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomaztk/tsqlwordle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2Ftsqlwordle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2Ftsqlwordle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2Ftsqlwordle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2Ftsqlwordle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomaztk","download_url":"https://codeload.github.com/tomaztk/tsqlwordle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2Ftsqlwordle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013497,"owners_count":26085368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game","sql","sql-game","sql-procedures","sql-programming","sql-query","sql-server","sqldatabase","t-sql","wordle"],"created_at":"2024-11-19T19:14:18.215Z","updated_at":"2025-10-13T03:26:09.697Z","avatar_url":"https://github.com/tomaztk.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Popular Wordle game for T-SQL \n\nPopular word guessing game - Wordle written in T-SQL. Github repository gives you T-SQL Code  for Microsoft SQL Server for this popular game, using your favorite editor.\n\nGame outlook and design is based on the concept of https://powerlanguage.co.uk/wordle/ \n\nOriginal Wordle gameplay outlook:\n\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"imgs/wordle_gameplay.png\" alt=\"Original Wordle gameplay\" style=\"width:300px;\"/\u003e\u003c/div\u003e\n\n## About the game\n\nIt is a word guessing game. You have to guess the Wordle in six (or less) tries. Words must be in the word list, based on the dictionary. \n1. A letter that is correctly guessed (position and letter) turns green (in T-SQL version, the letter is enclosed in [[ A ]]), \n1. a letter that is correct but placed in wrong wrong position turns yellos (in T-SQL version, \n1. a letter is enclosed in {{ A }}) and an incorrect letter turns gray (in T-SQL version, the letter is enclosed in ' A ').\n\n\n\n## Installation\n\nGame has a single procedure. The initialization of the thesaurus (list of the words for a given language) is done by running the script ```setup.SQL```.\n\nYou will be able to install the language pack with:\n```\nBULK INSERT dbo.TempWords\n--FROM '/Users/tomazkastrun/Documents/tsqlwordle/languages/english.txt' -- Linux\nFROM 'C:\\DataTK\\git\\tsqlwordle\\languages\\english.txt' -- Windows\nWITH (FIRSTROW = 1\n    ,ROWTERMINATOR='\\n');\t\n-- (1384 rows affected)\n\nSELECT \n     word\n    ,'EN' as lang\n FROM TempWords;\n```\nGithub repository offers four language packs:\n1. English\n2. German\n3. Slovenian\n4. Italian\n\nAnd each language pack has also the keyboard layout available in the table:\n```\nDROP TABLE IF EXISTS dbo.Keyboard;\nGO\nCREATE TABLE dbo.Keyboard\n(\n    ID INT IDENTITY(1,1)\n    ,Krow INT NOT NULL\n    ,Kkey NVARCHAR(100) NOT NULL\n    ,lang CHAR(3) NOT NULL\n)\n\nINSERT INTO dbo.Keyboard\nSELECT 1, 'Q; W; E; R; T; Y; U; I; O; P', 'EN' UNION ALL\nSELECT 2, 'A; S; D; F; G; H; J; K; L', 'EN' UNION ALL\nSELECT 3, 'Z; X; C; V; B; N; M', 'EN' UNION ALL\nSELECT 1, 'Q; W; E; R; T; Z; U; I; O; P; Š; Đ', 'SI' UNION ALL\nSELECT 2, 'A; S; D; F; G; H; J; K; L; Č; Ć; Ž', 'SI' UNION ALL\nSELECT 3, 'Y; X; C; V; B; N; M', 'SI'  UNION ALL\nSELECT 1, 'Q; W; E; R; T; Z; U; I; O; P; Ü', 'DE' UNION ALL\nSELECT 2, 'A; S; D; F; G; H; J; K; L; Ö; Ä', 'DE' UNION ALL\nSELECT 3, 'Y; X; C; V; B; N; M', 'DE'   \nSELECT 1, 'Q; W; E; R; T; Z; U; I; O; P', 'IT' UNION ALL\nSELECT 2, 'A; S; D; F; G; H; J; K; L', 'IT' UNION ALL\nSELECT 3, 'Y; X; C; V; B; N; M', 'IT'   \n```\n\nThe second file is  ```Game.SQL``` that consists of single procedure. This procedure creates complete gameplay and ends after the word is found or user runs out of six tries.\n\n\n## Playing the game\n\nRunning the game by using the procedure in english language pack and with the first try:\n\n```\n-- Initial Try\n\tEXEC dbo.WordGuess \n\t\t @lang='EN'\n\t\t,@guess = 'right'\n```     \n\nAfter the initial run, you have to find a clever way to find the next 5-letter word following the clues that SQL Server returns; Green letters in [[ ]] and yellow letters in {{ }}\n\n```\n-- Second Try\n\tEXEC dbo.WordGuess \n\t\t @lang='EN'\n\t\t,@guess = 'shirt'\n```\n\n\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"imgs/gameplay1.png\" alt=\"Wordle with T-SQL\" style=\"width:400px;\"/\u003e\u003c/div\u003e\n\nAfter the second try, this looks very good and the final word should be '''short'''.\n\n```\n-- Third Try\n\tEXEC dbo.WordGuess \n\t\t @lang='EN'\n\t\t,@guess = 'short'\n```\nAnd you win the game!\n\n\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"imgs/gameplay2.png\" alt=\"Wordle with T-SQL\" style=\"width:400px;\"/\u003e\u003c/div\u003e\n\n\n## Forking or cloning the repository\nTo work in GitHub, go to https://github.com/tomaztk/tsqlwordle and fork the repository. Work in your own fork and when you are ready to submit to make a change or publish your sample for the first time, submit a pull request into the master branch of this repository. \n\nYou can also clone the repository. Note: further changes should be fetched manually.\n\nFeel free to collaborate on the language pack and add more languages.\n\n\n```\ngit clone -n https://github.com/tomaztk/tsqlwordle \n```\n\n## Code of Conduct\nCollaboration on this code is welcome and so are any additional questions or comments.\n\n\n## License\nCode is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaztk%2Ftsqlwordle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomaztk%2Ftsqlwordle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaztk%2Ftsqlwordle/lists"}