https://github.com/scribd/robot-fruit-hunt
A fun little game that doubles as a JavaScript programming exercise.
https://github.com/scribd/robot-fruit-hunt
Last synced: about 1 month ago
JSON representation
A fun little game that doubles as a JavaScript programming exercise.
- Host: GitHub
- URL: https://github.com/scribd/robot-fruit-hunt
- Owner: scribd
- Created: 2012-05-11T21:01:14.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T23:14:15.000Z (about 5 years ago)
- Last Synced: 2025-03-27T01:11:10.759Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://www.fruitbots.com
- Size: 321 KB
- Stars: 142
- Watchers: 24
- Forks: 112
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
## Welcome!
Modify mybot.js to start writing your bot. Opening game.html will allow you to generate random boards, and either watch your bot play or step through one move at a time. Refer [here](http://fruitbots.org/api/api) for available methods. gl/hf! - Scribd.
ps: you should be able to ignore everything in `assets/`, but if you want to disable the opponent bot from playing in `game.html`, go to `assets/simplebot.js` and find:
```javascript
makeMove: function() {
// to disable to opponent, uncomment the next line
// return PASS;
```Uncomment `return PASS;` and your bot will be free to roam the board alone.