{"id":21330199,"url":"https://github.com/mohsensami/robots-vs-dinosaurs","last_synced_at":"2026-05-04T21:39:57.247Z","repository":{"id":104029114,"uuid":"581504661","full_name":"mohsensami/robots-vs-dinosaurs","owner":"mohsensami","description":"A service that provides a REST API to support simulating an army of remote-controlled robots to fight the dinosaurs","archived":false,"fork":false,"pushed_at":"2022-12-25T20:25:16.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T13:39:13.396Z","etag":null,"topics":["fastapi","python","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mohsensami.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-23T11:35:43.000Z","updated_at":"2023-01-02T08:18:21.000Z","dependencies_parsed_at":"2023-11-24T02:30:17.377Z","dependency_job_id":null,"html_url":"https://github.com/mohsensami/robots-vs-dinosaurs","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/mohsensami%2Frobots-vs-dinosaurs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsensami%2Frobots-vs-dinosaurs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsensami%2Frobots-vs-dinosaurs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsensami%2Frobots-vs-dinosaurs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohsensami","download_url":"https://codeload.github.com/mohsensami/robots-vs-dinosaurs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809956,"owners_count":20351403,"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":["fastapi","python","vuejs"],"created_at":"2024-11-21T22:15:35.595Z","updated_at":"2026-05-04T21:39:57.218Z","avatar_url":"https://github.com/mohsensami.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robots vs Dinosaurs\n\nIn this simulate, it's implementing a service that provides a REST API to support a war between robots and dinosaurs.\n\nThe key features are:\nThese are the features required:\n### Backend\n- Be able to create an empty simulation space - an empty 10 x 10 grid.\n- Be able to create a robot in a certain position.\n- Be able to create a dinosaur in a certain position.\n- Issue instructions to a robot - a robot can move up, move down, move left, move right and attack.\n- A robot attack destroys dinosaurs around it (the attack kills all the dinosaurs in up, left, right or\ndown cell).\n- No need to worry about the dinosaurs - dinosaurs don't move.\n- Two or more entities (robots or dinosaurs) cannot occupy the same position.\n- Attempting to move a robot outside the simulation space is an invalid operation.\n#### Run this command on your terminal\n```\n    1. git clone https://github.com/mohsensami/robots-vs-dinosaurs.git\n    2. cd robots-vs-dinosaurs\n```\n#### Create virtual enviroment to install required libraries\n```\n    1. pip install virtualenv \n    2. virtualenv venv\n    3. source venv/bin/activate\n    4. pip install -r requirements.txt\n```\n#### Run the project\n```\nuvicorn main:app --reload --port 8000\n```\n### Frontend \n- A menu to create a new simulation (be able to add robots, dinosaurs)\n- Display the simulation's current state.\n#### Front Project Setup\n```\ncd frontend\nyarn\nyarn dev\n```\n\n\n### App Preview :\n\n\u003ctable width=\"100%\"\u003e \n\u003ctr\u003e\n\u003ctd width=\"50%\"\u003e      \n\u0026nbsp; \n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  Start Game\n\u003c/p\u003e\n\u003cimg src=\"https://github.com/mohsensami/robots-vs-dinosaurs/blob/main/screenshot/_start.png?raw=true\"\u003e\n\u003c/td\u003e \n\u003ctd width=\"50%\"\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  Finish Game\n\u003c/p\u003e\n\u003cimg src=\"https://github.com/mohsensami/robots-vs-dinosaurs/blob/main/screenshot/_end.png?raw=true\"\u003e  \n\u003c/td\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsensami%2Frobots-vs-dinosaurs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohsensami%2Frobots-vs-dinosaurs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsensami%2Frobots-vs-dinosaurs/lists"}