This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Patrol the village entrances. | |
# If you find an enemy, attack it. | |
loop: | |
self.moveXY(35, 34) | |
leftEnemy = self.findNearest(self.findEnemies()) | |
if leftEnemy: | |
self.attack(leftEnemy) | |
self.attack(leftEnemy) | |
# Now move to the right entrance. | |
# Use "if" to attack if there is an enemy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only attack enemies of type "munchkin" and "thrower". | |
# Don't attack a "burl". Run away from an "ogre"! | |
loop: | |
enemy = self.findNearest(self.findEnemies()) | |
# Remember: don't attack type "burl"! | |
if enemy.type is "burl": | |
self.say("I'm not attacking that Burl!") | |
# The "type" property tells you what kind of creature it is. | |
if enemy.type is "munchkin": | |
self.attack(enemy) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loop: | |
bob = self.findNearest(self.findEnemies()) | |
if bob: | |
if (self.distanceTo(bob) > 1) : | |
self.say("come closer") | |
if self.isReady("cleave"): | |
if len(self.findEnemies()) > 4 : | |
self.attack(bob) | |
self.cleave(bob) | |
if self.isReady("bash"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.warcry() | |
self.moveXY(54,22) | |
for bob in self.findEnemies(): | |
self.attack(bob) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your goal is to get to the right side of the map alive. | |
# You don't need to fight the ogres, just move! Your allies will protect you. | |
self.moveRight(2) | |
self.moveUp() | |
self.moveRight(3) | |
self.moveDown() | |
self.moveRight() | |
self.moveDown() | |
self.moveRight() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this needs a loop to determine where you can move and also I might want to look up how to use methods | |
#status: works | |
# Reach the end of the maze using move commands. | |
# Count how many gems you pick up, and then say the current count when near a fireball trap to disable it. | |
# The raven at the start will give you a password. Say the password near a door to open it. | |
# Kill ogres when you get near them. | |
# You can use a loop to repeat all of the instructions as needed. | |
# If you beat this level, you can skip to the Forest World! | |
loop: | |
self.moveRight() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//replace http://agar.io/main_out.js by this file | |
//with Fiddler Web Debugger (AutoResponder tab) | |
//bots can be created in different rooms - so try restart the page if need | |
var totalBotCount = 0; | |
function game(h, r, bot, botUrl, botName) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "csv" | |
require 'action_controller/test_process' | |
file = `ls upload/*.csv | grep -v and-r`.chomp | |
info = CSV.read(ARGV.first || file) | |
info.shift | |
# TODO: set this list by eliminating the expected cols | |
properties = %w[Colour Material Size Weight Warranty] + ["Pole Diameter", "Fits Pole Size"] |
NewerOlder