We play with the usual rules, plus the following modifiers.
- If you dodge an explosion, everyone else has to drink
- If you draw an exploding kitten, you drink (no matter how it ends)
Can be NOPE'd
// 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); |
// 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 |
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); | |
} |
I hereby claim:
To claim this, I am signing this object: