{"id":15839925,"url":"https://github.com/renanbastos93/gophermoves","last_synced_at":"2025-04-01T17:18:16.973Z","repository":{"id":211032446,"uuid":"728027341","full_name":"renanbastos93/gophermoves","owner":"renanbastos93","description":"Go package for simulating the movements of a character.","archived":false,"fork":false,"pushed_at":"2024-04-08T16:37:06.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T11:13:12.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/renanbastos93.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}},"created_at":"2023-12-06T04:23:56.000Z","updated_at":"2023-12-06T04:34:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"68582dbf-d4b8-4c82-a443-881e0ed79c71","html_url":"https://github.com/renanbastos93/gophermoves","commit_stats":null,"previous_names":["renanbastos93/gophermoves"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanbastos93%2Fgophermoves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanbastos93%2Fgophermoves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanbastos93%2Fgophermoves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanbastos93%2Fgophermoves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanbastos93","download_url":"https://codeload.github.com/renanbastos93/gophermoves/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679060,"owners_count":20816402,"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":"2024-10-05T16:40:35.538Z","updated_at":"2025-04-01T17:18:16.957Z","avatar_url":"https://github.com/renanbastos93.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gopher Moves\n\nGopherMoves is a Go package that provides an interface and an example implementation for simulating the movements of a character, particularly designed for a Gopher character.\n\nhttps://github.com/renanbastos93/gophermoves/assets/8202898/4ecaa097-08e4-4a67-a80f-a311b6e1af67\n\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Interface Methods](#interface-methods)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nTo use GopherMoves in your Go project, you can simply run:\n\n```bash\ngo get -u github.com/renanbastos93/gophermoves\n```\n\n## Usage\n\n```go\npackage main\n\nimport \"github.com/renanbastos93/gophermoves\"\n\nfunc main() {\n\torderMatrix := 5\n\tg := gophermoves.New(orderMatrix)\n\terr := g.Start()\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n}\n```\n\n## Interface Methods\n\nThe GopherMoves interface provides the following methods:\n\n- `Start() (err error)`: Initiates movements for the character.\n- `Reset()`: Redefines the default states of the X and Y positions.\n- `Up()`: Moves the character upward.\n- `Down()`: Moves the character downward.\n- `Left()`: Turns the character to the left.\n- `Right()`: Turns the character to the right.\n\n\n## Contributing\n\nFeel free to contribute to this project. If you find any issues or have suggestions, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanbastos93%2Fgophermoves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanbastos93%2Fgophermoves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanbastos93%2Fgophermoves/lists"}