{"id":18648692,"url":"https://github.com/eaimty/gamie","last_synced_at":"2025-09-16T18:29:58.456Z","repository":{"id":57632961,"uuid":"431554776","full_name":"EAimTY/gamie","owner":"EAimTY","description":"A Rust library provides abstractions for several classic tiny games.","archived":false,"fork":false,"pushed_at":"2024-10-13T08:40:43.000Z","size":96,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T14:28:28.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EAimTY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-11-24T16:26:59.000Z","updated_at":"2025-06-19T01:14:00.000Z","dependencies_parsed_at":"2024-11-07T06:35:01.398Z","dependency_job_id":"b7ffe61f-9981-4340-9fd1-0011a041c50b","html_url":"https://github.com/EAimTY/gamie","commit_stats":{"total_commits":57,"total_committers":1,"mean_commits":57.0,"dds":0.0,"last_synced_commit":"78d2cae47ccfaae1d27e88929aa0e96496cd377c"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/EAimTY/gamie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fgamie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fgamie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fgamie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fgamie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EAimTY","download_url":"https://codeload.github.com/EAimTY/gamie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fgamie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275464709,"owners_count":25469881,"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-09-16T02:00:10.229Z","response_time":65,"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":[],"created_at":"2024-11-07T06:33:24.464Z","updated_at":"2025-09-16T18:29:58.395Z","avatar_url":"https://github.com/EAimTY.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gamie\n\nA Rust library provides abstractions for several classic tiny games.\n\n[![Version](https://img.shields.io/crates/v/gamie.svg?style=flat)](https://crates.io/crates/gamie)\n[![Documentation](https://img.shields.io/badge/docs-release-brightgreen.svg?style=flat)](https://docs.rs/gamie)\n[![License](https://img.shields.io/crates/l/gamie.svg?style=flat)](https://github.com/EAimTY/gamie/blob/master/LICENSE)\n\ngamie provides simple yet adequate abstractions for several classic tiny games.\n\ngamie only came with a few dependencies, it can be easily integrated into your projects.\n\n## Usage\n\nTo use gamie, you should enable modules in `Cargo.toml`. For example `tictactoe`:\n\n```toml\n[dependencies]\ngamie = { version = \"0.9.0\", features = [\"std\", \"tictactoe\"] }\n```\n\nNow you can use the `TicTacToe` game abstraction:\n\n```rust\nuse gamie::tictactoe::{TicTacToe, Player as TicTacToePlayer, Status as TicTacToeGameStatus};\n\nlet mut game = TicTacToe::new().unwrap();\ngame.place(TicTacToePlayer::Player0, 1, 1).unwrap();\ngame.place(TicTacToePlayer::Player1, 0, 0).unwrap();\ngame.place(TicTacToePlayer::Player0, 0, 2).unwrap();\ngame.place(TicTacToePlayer::Player1, 2, 0).unwrap();\ngame.place(TicTacToePlayer::Player0, 1, 0).unwrap();\ngame.place(TicTacToePlayer::Player1, 1, 2).unwrap();\ngame.place(TicTacToePlayer::Player0, 2, 1).unwrap();\ngame.place(TicTacToePlayer::Player1, 0, 1).unwrap();\ngame.place(TicTacToePlayer::Player0, 2, 2).unwrap();\nassert!(game.is_ended());\nassert_eq!(game.get_game_status(), \u0026TicTacToeGameStatus::Tie);\n```\n\nCheck the [docs](https://docs.rs/gamie) for further information.\n\n## Modules\n\nCurrently, the following modules are available:\n\n- [connect_four](https://docs.rs/gamie/*/gamie/connect_four)\n- [gomoku](https://docs.rs/gamie/*/gamie/gomoku)\n- [minesweeper](https://docs.rs/gamie/*/gamie/minesweeper)\n- [reversi](https://docs.rs/gamie/*/gamie/reversi)\n- [tictactoe](https://docs.rs/gamie/*/gamie/tictactoe)\n\n## Serialize / Deserialize\n\nBring in the `serde` feature to enable serialization and deserialization for structs\nOpt in the `bincode` feature to enable encoding and decoding with [bincode](https://github.com/bincode-org/bincode)\n\n## no_std\n\nThis crate runs flawlessly on bare metal.\nTo remove the Rust standard library dependency, opt out the `std` feature by disabling `default-features` in `Cargo.toml`:\n\n```toml\n[dependencies]\ngamie = { version = \"0.9.0\", default-features = false, features = [\"tictactoe\"] }\n```\n\n## License\n\nGNU General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Fgamie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feaimty%2Fgamie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Fgamie/lists"}