{"id":23879358,"url":"https://github.com/ceedubs/ants-ai-challenge","last_synced_at":"2025-07-06T01:39:01.737Z","repository":{"id":2210192,"uuid":"3159360","full_name":"ceedubs/ants-ai-challenge","owner":"ceedubs","description":"My bot for the 2011 aichallenge.org ants AI challenge implemented in Scala","archived":false,"fork":false,"pushed_at":"2012-01-12T03:07:49.000Z","size":1100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T22:51:52.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"numtel/meteor-mysql-leaderboard","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceedubs.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}},"created_at":"2012-01-12T02:50:37.000Z","updated_at":"2018-04-22T23:41:06.000Z","dependencies_parsed_at":"2022-08-20T09:50:53.037Z","dependency_job_id":null,"html_url":"https://github.com/ceedubs/ants-ai-challenge","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/ceedubs%2Fants-ai-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceedubs%2Fants-ai-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceedubs%2Fants-ai-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceedubs%2Fants-ai-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceedubs","download_url":"https://codeload.github.com/ceedubs/ants-ai-challenge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240247543,"owners_count":19771324,"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":"2025-01-03T22:51:57.576Z","updated_at":"2025-02-22T23:24:09.802Z","avatar_url":"https://github.com/ceedubs.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disclaimer\nI should have forked [Synesso/aichallenge](https://github.com/Synesso/aichallenge),\nbut at the time I downloaded the starter package and created a Git repository out of it,\nI didn't realize it was on GitHub. My repository contains only a subset of the files in\nthe original repository.The following README, and most of the code in this repository\nis from the Scala starter package that Synesso has provided. Thank you, Synesso!\n\n# Scala Starter Package for Ant Wars\n\nSee the section after \"Google AI Challenge Blurb\" for information\nspecific to this Scala starter package.\n\n\n## Google AI Challenge Blurb\n\nThe files in this package are part of a starter package from the\nGoogle AI Challenge. The Google AI Challenge is an Artificial\nIntelligence programming contest. You can get more information by\nvisiting [www.ai-contest.com](http://www.ai-contest.com/).\n\nThe entire contents of this starter package are released under the\nApache license as is all code related to the Google AI Challenge. See\n[code.google.com/p/ai-contest/](http://code.google.com/p/ai-contest/)\nfor more details.\n\nThere are a bunch of tutorials on the\n[ai-contest.com](http://ai-contest.com/) website that tell you what to\ndo with the contents of this starter package. For the impatient, here\nis a brief summary.\n\n* In the root directory, there are a bunch of code files. These are a\n  simple working contest entry that employs a basic strategy. These\n  are meant to be used as a starting point for you to start writing\n  your own entry.  Alternatively, you can just package up the starter\n  package as-is and submit it on the website.\n\n* The tools directory contains a game engine and visualizer. This is\n  meant to be used to test your bot. See the relevant tutorials on the\n  website for information about how to use the tools.\n\n* The example_bots directory contains some sample bots for you to test\n  your own bot against.\n\n\n## Scala Starter Package Specific Information\n\nThis is the basic Scala starter package. It is implemented as per the\nrequirements for a starter package as documented on the \n[Google AI Challenge wiki](https://github.com/aichallenge/aichallenge/wiki/Ants-Starter-Pack-Guide).\n\nThe official server will be executing Scala bots using [Scala 2.8.1-final](http://www.scala-lang.org/node/8102).\nContestants are recommended to use this version for their development.\n\n\n## Source\n\n`AntsGame.scala` contains the game loop. `Parser.scala` contains the input \nparsing logic. `MyBot.scala` contains the actual bot AI. Currently it does \nnothing more than check whether it can go either north, east, south or west \nand if it can it issues an order to the server to go in that direction.  \n(As described in the [Ants Starter Pack Guide](https://github.com/aichallenge/aichallenge/wiki/Ants-Starter-Pack-Guide)).\n\nThe `Bot.scala` trait, from which `MyBot.scala` derives, provides the \ninterface for your bot.\n\n    def ordersFrom(gameState: Game): Set[Order]\n\nGiven a `GameState` (being all that your bot has been told about the game \nstate in the current round; all bodies of water ever seen; and the\nparameters used to seed the game), your bot is tasked with returning a\nset of `Order`s (being the location of ants that should move and the\ndirection they should move in).\n\nThe simplest possible implementation is:\n\n    def ordersFrom(gameState: Game) = Set.empty[Order]\n\n\n## Status\n\nThis bot has been tested locally with data on standard input and with \na locally running game engine. There may yet be undiscovered bugs within \nthe game loop. Assume nothing. At any rate, all code in this \nstarter package is able to be modified or removed within your own\nScala bot submission.\n\nPatches to the Scala starter bot are welcomed. Fork the [offical repo](https://github.com/aichallenge/aichallenge)\nif you wish. Or, fork [my fork](https://github.com/Synesso/aichallenge)\nif you would like a review.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceedubs%2Fants-ai-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceedubs%2Fants-ai-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceedubs%2Fants-ai-challenge/lists"}