{"id":18080326,"url":"https://github.com/chunrapeepat/robocode","last_synced_at":"2025-10-26T15:38:46.021Z","repository":{"id":102447920,"uuid":"50765554","full_name":"chunrapeepat/Robocode","owner":"chunrapeepat","description":"The Robot Of Robocoding created by Chunza2542 ","archived":false,"fork":false,"pushed_at":"2016-02-03T13:42:39.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T02:55:50.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/chunrapeepat.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}},"created_at":"2016-01-31T08:36:27.000Z","updated_at":"2016-02-01T11:41:56.000Z","dependencies_parsed_at":"2023-04-26T03:14:30.343Z","dependency_job_id":null,"html_url":"https://github.com/chunrapeepat/Robocode","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/chunrapeepat%2FRobocode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2FRobocode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2FRobocode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2FRobocode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chunrapeepat","download_url":"https://codeload.github.com/chunrapeepat/Robocode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406072,"owners_count":20933802,"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-31T13:07:15.800Z","updated_at":"2025-10-26T15:38:45.925Z","avatar_url":"https://github.com/chunrapeepat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robocode\nThe Robot created by \u003cb\u003eChunza2542\u003c/b\u003e (Chun Rapeepat)\u003cbr\u003e\n* \u003cb\u003eUsage\u003c/b\u003e [Installation the robot]\u003cbr\u003e\n\u003ccode\u003eimport robocode.util.Utils;\u003c/code\u003e\n\u003ccode\u003epublic class \u003cRoboName\u003e extends AdvancedRobot\u003c/code\u003e\u003cbr\u003e\n* \u003cb\u003eMethods\u003c/b\u003e [Methods description]\u003cbr\u003e\n-\u003ccode\u003esetAdjust ... For ... Turn(true); //Sets the .... to turn independent from the ..... turn.\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003egetX(), getY // get x,y left bottom is (0,0)\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003egetBattleFieldWidth(),getBattleFieldHeight() //Get width \u0026 Height of BattleField\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003egetRadarTurnRemaining() //Returns the angle remaining in the radar's turn, in radians.\nThis call returns both positive and negative values. Positive values means that the radar is currently turning to the right. Negative values means that the radar is currently turning to the left.\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003eexecute() //continues executing actions that are in process. This call returns after the actions have been started.\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003eUtils.normalRelativeAngleDegrees // -180 to 180\u003c/code\u003e\u003cbr\u003e\n-\u003ccode\u003eUtils.normalRelativeAngleDegrees // -180 to 180\u003c/code\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003cb\u003eEX.\u003c/b\u003e\u003ccode\u003e//เซ็ตตัวแปร \"องศาที่เรดาร์จะต้องหมุนเพิ่ม\" ให้เท่ากับ\u003cbr\u003e\n    double radarTurn =\u003cbr\u003e\n        // องศาที่ตัวหุ่นยนต์ของเราหันอยู่เมื่อเทียบกับสนามรบ + องศาที่จุดค้นพบศัตรูเทียบกับองศาที่ตัวหุ่นยนต์เราหันอยู่\u003cbr\u003e\n        getHeadingRadians() + e.getBearingRadians()\u003cbr\u003e\n        // ลบด้วยองศาที่เรดาร์กำลังหันไปอยู่\u003cbr\u003e\n        - getRadarHeadingRadians();\u003cbr\u003e\n    //หมุนเรดาร์ไปทางขวาตามค่าของตัวแปร \"องศาที่เรดาร์จะต้องหมุนเพิ่ม\"\u003cbr\u003e\n    setTurnRadarRightRadians(Utils.normalRelativeAngle(radarTurn));\u003cbr\u003e\u003c/code\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunrapeepat%2Frobocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchunrapeepat%2Frobocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunrapeepat%2Frobocode/lists"}