I hereby claim:
- I am rorosaurus on github.
- I am rorosaurus (https://keybase.io/rorosaurus) on keybase.
- I have a public key whose fingerprint is 2813 3EFA 19FA 5FA8 B131 CD32 889B 0570 2DB9 E730
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public static void main(String args[]){ | |
final int startingShot = 1; | |
ArrayList<Integer> startingList = new ArrayList<Integer>(); | |
// fill list with shots | |
for(int i=0;i<1024;i++){ | |
startingList.add(i, i+1); | |
} |
// This F# dojo is directly inspired by the | |
// Digit Recognizer competition from Kaggle.com: | |
// http://www.kaggle.com/c/digit-recognizer | |
// The datasets below are simply shorter versions of | |
// the training dataset from Kaggle. | |
// The goal of the dojo will be to | |
// create a classifier that uses training data | |
// to recognize hand-written digits, and | |
// evaluate the quality of our classifier |
// if you own that virus | |
if(viruses[i].getOwner() == playerID()) | |
{ | |
//if tile is captured but not occupied | |
if(viruses[i].getX() > 0 && !intersectBase(viruses[i].getX()-1, viruses[i].getY(), bases) && getTileAtLocation(viruses[i].getX()-1, viruses[i].getY()).getOwner() == enemyID) { | |
viruses[i].move(viruses[i].getX()-1, viruses[i].getY()); | |
} else if(viruses[i].getX() < width()-1 && !intersectBase(viruses[i].getX()+1, viruses[i].getY(), bases) && getTileAtLocation(viruses[i].getX()+1, viruses[i].getY()).getOwner() == enemyID) { | |
viruses[i].move(viruses[i].getX()+1, viruses[i].getY()); | |
} else if(viruses[i].getY() > 0 && !intersectBase(viruses[i].getX(), viruses[i].getY()-1, bases) && getTileAtLocation(viruses[i].getX(), viruses[i].getY()-1).getOwner() == enemyID) { | |
viruses[i].move(viruses[i].getX(), viruses[i].getY()-1); |