{"id":15068694,"url":"https://github.com/georgiosioannoucoder/tortoise-and-hare","last_synced_at":"2026-01-03T11:35:30.303Z","repository":{"id":217698669,"uuid":"744582025","full_name":"GeorgiosIoannouCoder/tortoise-and-hare","owner":"GeorgiosIoannouCoder","description":"Tortoise and Hare Implementation Using Java 8. 🐢🐇","archived":false,"fork":false,"pushed_at":"2024-01-17T21:01:58.000Z","size":1189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T21:32:41.246Z","etag":null,"topics":["java-8","java8","tortoise-and-hare"],"latest_commit_sha":null,"homepage":"","language":"Java","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/GeorgiosIoannouCoder.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":"2024-01-17T15:40:26.000Z","updated_at":"2024-01-17T21:37:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"32e0401a-87f4-4763-92ce-698629010214","html_url":"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare","commit_stats":null,"previous_names":["georgiosioannoucoder/tortoise-and-hare"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiosIoannouCoder%2Ftortoise-and-hare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiosIoannouCoder%2Ftortoise-and-hare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiosIoannouCoder%2Ftortoise-and-hare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiosIoannouCoder%2Ftortoise-and-hare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeorgiosIoannouCoder","download_url":"https://codeload.github.com/GeorgiosIoannouCoder/tortoise-and-hare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243849034,"owners_count":20357696,"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":["java-8","java8","tortoise-and-hare"],"created_at":"2024-09-25T01:38:52.859Z","updated_at":"2026-01-03T11:35:30.262Z","avatar_url":"https://github.com/GeorgiosIoannouCoder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Tortoise and the Hare | A Race Simulation\n\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n[![GitHub][github-shield]][github-url]\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Logo\"\u003e\n\n\u003ch3 align=\"center\"\u003e\u003ca href=\"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/main/Ioannou_Tortoise_And_Hare/src/Ioannou_Tortoise_And_Hare.java\"\u003eThe Tortoise and the Hare\u003c/a\u003e\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n   In this assignment, I recreated a version of the classic race of the tortoise and the hare. Using a random number generator to simulate the race. The contenders begin race along a track of 100 squares. Each square represents a possible position along the race course. The finish line is at square 100. The first contender to reach or pass square 100 wins. The course weaves its way up the side of a slippery mountain, so occasionally the contenders lose ground. A clock ticks once per second. With each tick of the clock, your application should adjust the position of the animals according to the rules found in the \u003ca href=\"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/main/Ioannou_Tortoise_And_Hare_Requirements.pdf\"\u003eRequirements\u003c/a\u003e. Variables keep track of the positions of the animals (i.e., position numbers are 1–100). Start each animal at position 1  (the \"starting gate\"). If an animal slips before square 1, move it back to square 1.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#requiremnets\"\u003eRequirements\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#setup\"\u003eSetUp\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#code\"\u003eCode\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#demo\"\u003eDemo\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## About The Project\n\n\u003cimg src=\"logo.png\" alt=\"Logo\" width=\"200\" height=\"140\"\u003e\n\n## Requirements\n\nYou can find the requirements of this assignment [here](https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/main/Ioannou_Tortoise_And_Hare_Requirements.pdf).\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n### Built With\n\n[![Java][Java]][Java-url]\n[![IntelliJIDEA][IntelliJIDEA]][IntelliJIDEA-url]\n[![Git][Git]][Git-url]\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## Getting Started\n\n**To get a local copy of this project up and running locally follow these simple example steps:**\n\n### Prerequisites\n\n**NOTE:** How to check if Git is installed and what is its version\n\n```sh\n  git -v\n```\n\n1. Please make sure you have git installed\n\n   - Windows: [https://git-scm.com/download/win](https://git-scm.com/download/win)\n   - Mac: [https://git-scm.com/download/mac](https://git-scm.com/download/mac)\n   - Linux: [https://git-scm.com/download/linux](https://git-scm.com/download/linux)\n\n2. Please make sure you have [IntelliJ IDEA](https://www.jetbrains.com/idea/) installed. You can download IntelliJ IDEA [here](https://www.jetbrains.com/idea/download/).\n\n***NOTE: You can use whatever code editor that you want. This project was created and tested with IntelliJ IDEA.***\n\n### SetUp\n\n1. Navigate to the directory where you want to clone/run/save the application\n\n    ```sh\n    cd your_selected_directory\n    ```\n\n2. Clone this repository\n\n   ```sh\n   git clone https://github.com/GeorgiosIoannouCoder/tortoise-and-hare.git\n   ```\n\n3. Navigate to the tortoise-and-hare git repository\n\n   ```sh\n   cd tortoise-and-hare\n   ```\n\n4. Open your file explorer\n\n   ```sh\n   start .\n   ```\n\n5. Open IntelliJ IDEA.\n\n6. Click on open/import an existing in IntelliJ IDEA.\n\n7. Open the Ioannou_Tortoise_And_Hare directory found inside thh tortoise-and-hare directory from steps 3 and 4 inside IntelliJ IDEA.\n\n8. Run the application inside IntelliJ IDEA. The main function to run the application is in this [file](https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/main/Ioannou_Tortoise_And_Hare/src/Ioannou_Tortoise_And_Hare.java).\n   \n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## Code\n\nThe main code file can be found [here](https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/main/Ioannou_Tortoise_And_Hare/src/Ioannou_Tortoise_And_Hare.java).\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## Demo\n\nhttps://github.com/GeorgiosIoannouCoder/tortoise-and-hare/assets/110848236/3415e95d-55cf-4f7f-88bd-d0ca45615df3\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/master/LICENSE) for more information.\n\nMIT License\n\nCopyright (c) 2021 Georgios Ioannou\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n## Contact\n\nGeorgios Ioannou - [@LinkedIn](https://linkedin.com/in/georgiosioannoucoder)\n\nGeorgios Ioannou - [@georgiosioannoucoder](https://georgiosioannoucoder.github.io/) - Please contact me via the form in my portfolio.\n\nProject Link: [https://github.com/GeorgiosIoannouCoder/tortoise-and-hare](https://github.com/GeorgiosIoannouCoder/tortoise-and-hare)\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#readme-top\"\u003eBack to top\u003c/a\u003e\u003c/p\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/GeorgiosIoannouCoder/tortoise-and-hare.svg?style=for-the-badge\n[contributors-url]: https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/graphs/contributors\n\n[forks-shield]: https://img.shields.io/github/forks/GeorgiosIoannouCoder/tortoise-and-hare.svg?style=for-the-badge\n[forks-url]: https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/network/members\n\n[stars-shield]: https://img.shields.io/github/stars/GeorgiosIoannouCoder/tortoise-and-hare.svg?style=for-the-badge\n[stars-url]: https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/stargazers\n\n[issues-shield]: https://img.shields.io/github/issues/GeorgiosIoannouCoder/tortoise-and-hare.svg?style=for-the-badge\n[issues-url]: https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/issues\n\n[license-shield]: https://img.shields.io/github/license/GeorgiosIoannouCoder/tortoise-and-hare.svg?style=for-the-badge\n[license-url]: https://github.com/GeorgiosIoannouCoder/tortoise-and-hare/blob/master/LICENSE\n\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=0077B5\n[linkedin-url]: https://linkedin.com/in/georgiosioannoucoder\n\n[github-shield]: https://img.shields.io/badge/-GitHub-black.svg?style=for-the-badge\u0026logo=github\u0026colorB=000\n[github-url]: https://github.com/GeorgiosIoannouCoder/\n\n[Java]: https://img.shields.io/badge/java-5382a1?style=for-the-badge\u0026logo=openjdk\u0026logoColor=f89820\n[Java-url]: https://www.java.com/\n\n[IntelliJIDEA]: https://img.shields.io/badge/intellij%20idea-000000?style=for-the-badge\u0026logo=intellijidea\u0026logoColor=\n[IntelliJIDEA-url]: https://www.jetbrains.com/idea/\n\n[Git]: https://img.shields.io/badge/git-000000?style=for-the-badge\u0026logo=git\u0026logoColor=orange\n[Git-url]: https://git-scm.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiosioannoucoder%2Ftortoise-and-hare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgiosioannoucoder%2Ftortoise-and-hare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiosioannoucoder%2Ftortoise-and-hare/lists"}