{"id":13685249,"url":"https://github.com/ninegua/reversi","last_synced_at":"2025-05-13T20:30:44.085Z","repository":{"id":42768581,"uuid":"276725210","full_name":"ninegua/reversi","owner":"ninegua","description":"Multiplayer Reversi Game on Internet Computer","archived":false,"fork":false,"pushed_at":"2023-03-14T17:35:19.000Z","size":1249,"stargazers_count":70,"open_issues_count":11,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T07:23:04.257Z","etag":null,"topics":["game","internetcomputer","motoko","othello","reversi"],"latest_commit_sha":null,"homepage":"https://ninegua.github.io/reversi","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninegua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-07-02T19:03:10.000Z","updated_at":"2025-03-11T04:05:40.000Z","dependencies_parsed_at":"2024-01-07T18:05:01.301Z","dependency_job_id":"fdf99988-3be1-43d2-b4a3-f360b103baf0","html_url":"https://github.com/ninegua/reversi","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/ninegua%2Freversi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Freversi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Freversi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Freversi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninegua","download_url":"https://codeload.github.com/ninegua/reversi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020902,"owners_count":22000805,"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":["game","internetcomputer","motoko","othello","reversi"],"created_at":"2024-08-02T14:00:47.481Z","updated_at":"2025-05-13T20:30:43.446Z","avatar_url":"https://github.com/ninegua.png","language":"JavaScript","readme":"# Multiplayer Reversi Game on Internet Computer\n\n**[Read about how the game was made!](https://ninegua.github.io/reversi)**\n\nThis game runs on [Internet Computer] as a canister.\nUsers can communicate with this canister by sending messages, which are just asynchronous function calls.\n\n![Reversi Screenshots](./docs/screenshots.png)\n\n**Play it at https://ivg37-qiaaa-aaaab-aaaga-cai.ic0.app**\n\n## Backend\n\nThe game backend is written in [Motoko].\n\n`register(player_name)` - Register the caller using the player name.\n\n`start(opponent_name)` - Start a game expecting an opponent.\nIf the name is empty string, the game will accept whoever joins next.\nThe first player starting a game will play black, and the second player will play white.\n\n`view()` - Get the up-to-date game state.\n\n`move(row, col)` - Place a piece at the given row and column (caller must be a registered player and has started a game).\n\nThe game will also keep player scores across all games.\n\n## Frontend\n\nThe GUI frontend is build with Javascript and [Mithril].\nIt is stored as a separate asset canister directly on [Internet Computer], and can be loaded at the game URL into a browser.\n\nThe terminal-based frontend no longer works with the new multiplayer API.\nThe [DFINITY SDK] currently lacks a way to switch or use different keypairs, which means the caller identity cannot change, so we don't have a way to run the game using the `dfx` command.\n\n## Installation\n\nTo run the game locally, you need to install [DFINITY SDK] first, which also requires [Node.js] and `npm`.\n\nAfter starting dfx (`dfx start --background`), run the following to build and install the canister:\n\n```\ndfx deploy\necho \"http://localhost:8000/?canisterId=$(dfx canister id reversi_assets)\"\n```\n\nThe last command prints a URL, load it in a browser, and enjoy!\n\n## License\n\nAll original code is released under MIT license.\nThe game UI also uses a free font [Akbar-Plain] made by Jon Bernhardt.\n\n[DFINITY]: https://dfinity.org/\n[DFINITY SDK]: https://sdk.dfinity.org/docs/\n[Internet Computer]: https://dfinity.org/\n[Motoko]: https://dfinity.org/\n[Mithril]: https://mithril.js.org/\n[Node.js]: https://nodejs.org/\n[Akbar-Plain]: https://www.wobblymusic.com/groening/akbar.html\n","funding_links":[],"categories":["DAPP","Applications"],"sub_categories":["ICP \u0026 Cycles","Games"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninegua%2Freversi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninegua%2Freversi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninegua%2Freversi/lists"}