This file contains 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 is shorthened version of blog post | |
# http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/ | |
# update packages | |
sudo apt-get update | |
sudo apt-get upgrade | |
#Add the ppa repo for NVIDIA graphics driver | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt-get update |
This file contains 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
import java.util.*; | |
public class MyBot { | |
// The DoTurn function is where your code goes. The PlanetWars object | |
// contains the state of the game, including information about all planets | |
// and fleets that currently exist. Inside this function, you issue orders | |
// using the pw.IssueOrder() function. For example, to send 10 ships from | |
// planet 3 to planet 8, you would say pw.IssueOrder(3, 8, 10). | |
// | |
// There is already a basic strategy in place here. You can use it as a |