I hereby claim:
- I am cven714 on github.
- I am cven714 (https://keybase.io/cven714) on keybase.
- I have a public key ASD_P2A7RKWWn8I5dM8DEtG2w5bnX3S_6vK-vjcuXEjyvgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package recfun | |
import common._ | |
object Main { | |
def main(args: Array[String]) { | |
println("Pascal's Triangle") | |
for (row <- 0 to 10) { | |
for (col <- 0 to row) | |
print(pascal(col, row) + " ") | |
println() |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
var rx = robot.position.x; | |
var ry = robot.position.y; | |
var aH = robot.arenaHeight; | |
var aW = robot.arenaWidth; | |
robot.clone() | |
}; |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var id; | |
var Robot = function(robot) { | |
id = this.id; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |