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
#wait until every player perform the "battle!" action | |
action 'Battle!', -> | |
#move the top card from each player down pile to battle pile | |
for p in [player, opponent] | |
p.down.top().flip() | |
p.down.moveTo(p.battle, 1) | |
#check if we have a war | |
while (pV=player.battle.top().value.rank) is (oV=opponent.battle.top().value.rank) | |
for p in [player, opponent] |
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.Stack; | |
public class Solver { | |
static boolean[][][] cube = new boolean[4][4][4]; | |
static int[] segments = {3,1,2,1,1,3,1,2,1,2}; | |
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 errno | |
import os | |
import shutil | |
from pathlib import Path | |
from absl import app | |
from absl import flags | |
FLAGS = flags.FLAGS |