{"id":27974227,"url":"https://github.com/masylum/whatajong_legacy","last_synced_at":"2025-05-08T00:13:16.331Z","repository":{"id":1720264,"uuid":"2450519","full_name":"masylum/whatajong_legacy","owner":"masylum","description":"Open source multiplayer mahjong using HTML5 and nodejs + socket.io","archived":false,"fork":false,"pushed_at":"2011-12-21T02:10:48.000Z","size":1379,"stargazers_count":80,"open_issues_count":2,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-08T00:13:05.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.fuckmahjong.com","language":"JavaScript","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/masylum.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}},"created_at":"2011-09-24T16:18:00.000Z","updated_at":"2025-04-25T04:54:13.000Z","dependencies_parsed_at":"2022-08-22T22:31:38.309Z","dependency_job_id":null,"html_url":"https://github.com/masylum/whatajong_legacy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fwhatajong_legacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fwhatajong_legacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fwhatajong_legacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fwhatajong_legacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/whatajong_legacy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973686,"owners_count":21834108,"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","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":[],"created_at":"2025-05-08T00:13:15.791Z","updated_at":"2025-05-08T00:13:16.306Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whatajong\n\nWhatajong is an open source html5 multiplayer solitaire built with nodejs and socket.io.\n\n![](https://github.com/masylum/whatajong/raw/master/public/images/preview.jpg)\n\nYou can try a hosted version at [fuckmahjong.com](http://www.fuckmahjong.com)\n\n## Installation\n\n```bash\ngit clone https://github.com/masylum/whatajong.git\nnpm install\ncp default.conf.js conf.js\n```\n\nEdit the `conf.js` file with your specific configuration and you are ready to go!\n\n## How does it work?\n\nHalf the game work in the client, and the other half in the server.\nBoth parts are communciated via socket.io exchanging `events` and `state`.\nThere is a file `public/js/tile.js` that works in the server and the client\nso we can't give some instant feedback to the user.\n\n```\n.-----------.                   .-------------.\n| Server    |                   | Browser 1   |\n+-----------+                   +-------------+\n|           |                   |             |\n|           | \u003c=== Events ======| public/js/* |\n|           |                   |             |\n|           |                   '-------------'\n|           |\n| serverjs  |===== State (broadcast) ====\u003e\n|           |\n|           |                   .-------------.\n|           |                   | Browser n   |\n|           |                   +-------------+\n|           |                   |             |\n|           | \u003c=== Events ======| public/js/* |\n|           |                   |             |\n'-----------'                   '-------------'\n```\n\n## MongoDB\n\nMongodb is used to store rooms and users.\n\n## License\n(The MIT License)\n\nCopyright (C) 2011 Pau Ramon Revilla \u003cmasylum@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fwhatajong_legacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Fwhatajong_legacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fwhatajong_legacy/lists"}