text
stringlengths
14
410k
label
int32
0
9
public void tick(int par1) { this.tickCounter = par1; this.removeDeadAndOutOfRangeDoors(); this.removeDeadAndOldAgressors(); if (par1 % 20 == 0) { this.updateNumVillagers(); } if (par1 % 30 == 0) { this.updateNumIronGolems(); ...
6
public String getAmount(){ String result = ""; if(amount < 1000) result = Integer.toString(amount); if(amount >= 1000) result = Integer.toString(amount / 1000) + "k"; if(amount >= 1000000) result = Integer.toString(amount / 1000000) + "m"; if(amount >= 1000000000) result = Integer.toString(amount / 1000000...
4
public static String calculate(String expression,boolean useDegree,int decimalPlaces){ useDegrees = useDegree; try { //Parse Vector<Token> tokens = Parser.tokenize(expression); tokens = Parser.convertToPostfixTokens(tokens); double result = Parser.calculatePostfixTokens(tokens); //Round to the s...
2
private void clearProjectiles() { for (int i = 0; i < projectiles.size(); i++) { Projectile p = projectiles.get(i); if (p.isRemoved()) { projectiles.remove(i); } } }
2
public void updateCollisionShape(Polygon col){ theEnemies = new CopyOnWriteArrayList<Enemy>(enemylist); for(Enemy e : theEnemies){ e.collisionshape=col; } }
1
public Image getTile(int x, int y) { if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) { return null; } else { return tiles[x][y]; } }
4
public static int sqrt(int x) { long start=0; long end=x; long middle=0; long temp=0; while(start < end){ middle = (start+end)/2; temp=middle*middle; if(temp < x) start=middle+1; else if(temp == x) return (int)middle; else { end=middle...
4
public JDialog getDialog() { return dialog; }
0
public void removeWalls(double accuracy) { for (int x = 0; x < vWalls.length; x++) for (int y = 0; y < vWalls[0].length; y++) { if (vWalls[x][y] && Math.random() < accuracy) vWalls[x][y] = false; } for (int x = 0; x < hWalls.length; x++) for (int y = 0; y < hWalls[0].length; y++) { if (hWalls[x][y]...
8
public static Adress getAdressByID(int adressID){ try { if(conn == null || conn.isClosed()){ conn = DatabaseConnection.getConnection(); } } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { PreparedStatement stmnt = conn.prepa...
4
@Override public int hashCode() { int hash = 0; hash += (a == null ? 0 : a.hashCode()); hash += (b == null ? 0 : b.hashCode()); hash += (c == null ? 0 : c.hashCode()); hash += (d == null ? 0 : d.hashCode()); hash += (e == null ? 0 : e.hashCode()); return hash; }
5
@Override public TexInfo getTexInfo(int data){ switch(data){ default: case 0: return normal; case 1: return mud; case 2: return whiteFlowers; } }
3
public void checkDown(Node node) { this.down = -1; // reset value to -1 // Prevent out of bounds if((node.getX()+1) < this.size.getX()) { if(checkWall(new Node( (node.getX()+1), (node.getY()) ))) { if(this.closedNodes.size()==0) this.down = 1; else { for(int i = 0; i < this.closedNodes.size()...
5
public static void registerTileImage(Class<?extends Game> gameClass, char symbol, URL imageURL) { tileImageURLs.put(new T2<Class<?extends Game>, Character>(gameClass,symbol), imageURL); BufferedImage img = null; try { img = ImageIO.read(imageURL); } catch (IOException e) {} tileImages.put(new T2<Class<?ext...
4
public void link(Fibonaccinode y, Fibonaccinode x) { y.left.right = y.right; y.right.left = y.left; y.parent = x; if (x.child == null) { x.child = y; y.right = y; y.left = y; } else { y.left = x.child; y.right = x.child.rig...
1
public String getEmptyString(){ return emptyString; }
0
private void jComboBox3actionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox3actionPerformed // TODO add your handling code here: if (this.jComboBox3.getSelectedIndex() == 0) { return; } int ptr = this.jComboBox3.getSelectedIndex() - 1; String str = "The select event --- ...
9
public static void generateRandomFile(String path, int size) throws IOException{ size *= 1024; Process p = Runtime.getRuntime().exec("dd if=/dev/urandom of="+path+" count=1 bs="+size); boolean finish = false; while (!finish) { try { p.exitValue(); finish = true; } catch (IllegalThreadStateExcep...
2
public void actionPerformed(ActionEvent e) { String c = e.getActionCommand(); String commandPlus = ""; String commandMinus = ""; for (int i = 0; i < numberOfGroups; ++i) { commandPlus = String.format("%d+", i); commandMinus = String.format("%d-", i); if (c.equals(commandPlus)) { UpdateTicketVa...
8
private boolean zIntersects(Vec3D var1) { return var1 == null?false:var1.x >= this.x1 && var1.x <= this.x2 && var1.y >= this.y1 && var1.y <= this.y2; }
4
public double getCorrectPercentage(long incorrect, long correct) { if (correct < 0) { System.out.println("Invalid number of correct answers"); return -1; } if (correct > 81) { System.out.println("Invalid number of correct answers"); return -1; } if (incorrect < 0) { System.out....
5
public ValidableEntitiesList getEntityList() { return entityList; }
0
private void processSelectFile(APDU apdu) { byte[] buffer = apdu.getBuffer(); byte p1 = buffer[OFFSET_P1]; byte p2 = buffer[OFFSET_P2]; if(p1 != (byte)0x02 || p2 != (byte)0x0C) { ISOException.throwIt(SW_INCORRECT_P1P2); } short lc = (short) (buffer[OFFSET_LC] ...
6
public ICodec getInstance() { if( iCodecClass == null ) return null; Object o = null; try { o = iCodecClass.newInstance(); } catch( InstantiationException ie ) { instantiationErro...
6
@Override public void execute(VirtualMachine vm) { vm.newFrameAtRunTimeStack(numberOfArguments); }
0
void callAnnotated(Class<? extends Annotation> ann, boolean lazy) { for (ComponentAccess p : oMap.values()) { p.callAnnotatedMethod(ann, lazy); } }
2
private void doAfterProcessing(ServletRequest request, ServletResponse response) throws IOException, ServletException { if (debug) { log("FiltradoSesion:DoAfterProcessing"); } // Write code here to process the request and/or response after // the rest of the filter chai...
1
public void putObjectOnBorder(Point inpNeighbourPoint, FieldObject inpObject) throws NoSuchPositionException { if (inpNeighbourPoint.x < 0 || inpNeighbourPoint.y < 0 || inpNeighbourPoint.x > rowSizeForUser - 1 || inpNeighbourPoint.y > colSizeForUser - 1) { throw new NoSuchPositionException("There is...
8
@Override public void paintComponent(Graphics g){ game.setSize(getSize()); game.draw(g); }
0
public synchronized void adicionar() { try { new InstituicaoSubmissaoView(this); } catch (Exception e) { } }
1
public synchronized void removePlayer(String player, byte id) { Player temp = new Player(player, id); for (Player p : players) { if (p.equals(temp)) { temp = p; } } if (temp != null) { //With this, at least it shouldn't break. players.remove(temp); players.add(new Player("Disconnected",id));...
4
public final void update(ResultData results[]) { if(results == null) { return; } if(!_onlineModus) { for(int i = 0; i < results.length; ++i) { if(results[i] != null) { DataDescription dataDescription = results[i].getDataDescription(); if(dataDescription != null) { if(!_simAttrib...
8
public static int LongestCommonSubsequence(char[] a, char[] b){ int m=a.length; int n=b.length; int[][] c=new int[m+1][n+1]; for (int i=0;i<=m;i++){ c[i][0]=0; } for (int j=0;j<=n;j++){ c[0][j]=0; } for (int i=1;i<=m;i++){ for (int j=1;j<=n;j++){ if (a[i-1]==b[j-1]){ c[i][j]=1+c[i-1][j...
5
private static byte[] deCompress(byte[] comprMsg){ PDU compressedPDU = new PDU(comprMsg, comprMsg.length); int algorithm = compressedPDU.getByte(0); int checksum = compressedPDU.getByte(1); int compLength = compressedPDU.getShort(2); int unCompLength = compressedPDU.getShort(4); ...
5
private Session getSession() { if (_currentSession == null) { _currentSession = getSessionFactory().openSession(); } return _currentSession; }
1
public double[] getIntersection(Line l){ double [] retArr = new double[2]; if ((_x == l.getSlope() && _y == l.getYCoefficient()) || (_y == 0 && l.getYCoefficient() == 0)){ return null; } else{ convertToSlopeIntersect(); l.convertToSlopeIntersect(); if (l.getYCoefficient() == 0){ retArr[0] = -1 ...
6
@Override public boolean delete(Object item) { conn = new SQLconnect().getConnection(); String sqlcommand = "UPDATE `Timeline_Database`.`Eventnodes` SET `display`='false' WHERE `id`='%s';"; if(item instanceof Eventnode) { Eventnode newitem = new Eventnode(); newitem = (Eventnode)item; try { Str...
2
@Override public Component getListCellRendererComponent(JList<? extends T> list, T value, int index, boolean isSelected, boolean cellHasFocus) { int i = getIndexFromData(list.getModel(), value); JLabel cell = new JLabel(entries.get(i), icons.get(i), SwingConstants.LE...
8
public Parser (String gridString){ this.gridString = gridString; }
0
public static void executeInstance(NanoHTTPD server) { try { server.start(); } catch (IOException ioe) { System.err.println("Couldn't start server:\n" + ioe); System.exit(-1); } System.out.println("Server started, Hit Enter to stop.\n"); try ...
2
public static void scan(InputStream source, InputStream format) throws IOException{ Scanner scanner = new Scanner(source); SimpleFormat sf = JAXB.unmarshal(format, SimpleFormat.class); ColumnIndexParser parser = new ColumnIndexParser(sf); Integer r = 0; while (...
2
public void setPosicionJugador1(int x,int y){ if(x>=0&&x<8&&y<8&&y>0){ switch (pd.mapa_jugador1[x][y]) { case "DT": case "PA": case "AZ": System.out.print("POSICION OCUPADA"); System.out.println("OTRA CORDENADA"); ...
8
public JFreeChart MakeChart() { DefaultCategoryDataset areaDataset = new DefaultCategoryDataset(); Object[] column1Data = super.getDataset().GetColumnData( super.getAttribute1()); Object[] column2Data = super.getDataset().GetColumnData( super.getAttribute2()); String column2Header = super.getData...
9
public static void printCorInfEventsToLLInterCount(){ int startTime = 0; int incTime = 5*(60*60*24); int endTime = 100*60*60*24; int estNumLocs = 100000; HashMap<Integer,Integer> aggPop = new HashMap<Integer,Integer>(estNumLocs); HashMap<Integer,Integer> numInfected = new HashMap<Integer,Integer>(estNumLocs...
9
public float priorityFor(Actor actor) { /* final Venue work = (Venue) actor.mind.work() ; if (work.personnel.shiftFor(actor) != Venue.SECONDARY_SHIFT) { if (! actor.isDoing("actionEquipYard", null)) return 0 ; } //*/ // // TODO: You can't drill if you lack an appropriate device ...
5
private String read() { StringBuffer buffer = new StringBuffer(); int codePoint; boolean zeroByteRead = false; try { do { codePoint = this.socketIn.read(); if (codePoint == 0) { zeroByteRead = true; } else if (Character.isValidCodePoint(codePoint)) { buffer.appendCodePoint(codePo...
5
private byte fromOpcode(Opcode opcode) { if (opcode == Opcode.CONTINIOUS) return 0; else if (opcode == Opcode.TEXT) return 1; else if (opcode == Opcode.BINARY) return 2; else if (opcode == Opcode.CLOSING) return 8; else if (opcode == Opcode.PING) return 9; else if (opcode == Opcode.PONG) r...
6
public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { if (pass == 0 && datase...
8
public void loadPlaymodes(){ try { Playmode[] playmodes = dbCon.getPlaymodes(); alstPlaymodePanels.clear(); playmodePanel.removeAll(); if(playmodes != null){ for (Playmode playmode : playmodes) { PlaymodePanel playmodepanel = new PlaymodePanel(playmode); alstPlaymodePanels.add(playmodepanel)...
6
public boolean saveWindowSize() { Preferences prefs = Preferences.userNodeForPackage(Joculus.class); // window preferences prefs.putInt(WINDOW_SIZE_DEFAULT_W_PROPERTY_NAME, window_size_last.width); prefs.putInt(WINDOW_SIZE_DEFAULT_H_PROPERTY_NAME, window_size_last.height); try {...
1
public void startEngine(){ try { // Default localhost host and default port 1099 is used by RMI Registry engineRegistry = LocateRegistry.createRegistry(1100); Registry generatorRegistry = LocateRegistry.getRegistry(1099); // Getting the RMI object to interact with map on generator server IEngineRMIObj...
7
public boolean registrarSeriales(entidadPrestamo datosPrestmo) { conectarse(); boolean retornarObj = false; String regser = "insert into tbl_dtlls_prestamo (Id_prestamo,Seriales) values(?,?)"; ArrayList seriales_recorrer = datosPrestmo.getSeriales(); String estado = datosPrestmo....
3
protected void update() { double val = Math.sqrt(movX * movX + movY * movY); if (val > 0) { posX += movX * speed / val; posY += movY * speed / val; } if (posX < Main.EDGE) { // posX = Main.FRAME_X - Main.EDGE; // posX = Main.FRAME_X / 2; // posX += 1; life.kill(); ...
5
private void requestQuotes(TACConnection conn, boolean flightQuotes, boolean hotelQuotes) { // This should be changed so that it will only request those quotes // that are old enough... if (flightQuotes) { for (int i = MIN_FLIGHT; i <= MAX_FLIGHT ; i++) { if (!quotes[i].isAuctionClosed()) { ...
8
private static boolean isRotation(String a, String b) { // both must be of the same length && one can find second string in concatenation of the first string to itself ( if it is rotated ) return(a.length()==b.length() && (a+a).indexOf(b)!=-1); }
1
public CacheableNode getFront() { CacheableNode cacheableNode = head.nextNode; if (cacheableNode == head) { current = null; return null; } else { current = cacheableNode.nextNode; return cacheableNode; } }
1
public String getBuildingId() { return buildingId; }
0
private synchronized void sendUpdates() { _dataGenerator.generateUpdatedEntries(); Set<Token> deletedTokens = new HashSet<Token>(); Iterator<Token> iter = _pendingStreamItems.keySet().iterator(); while (iter.hasNext()) { Token rq = (Token)(iter.next()); ...
7
public DataStructures getArrData(){ return arrData; }
0
public static void insertionSort (int[] array) { if (array == null || array.length <= 1) { return ; } int insertNum; int i, j; for (i = 1; i < array.length; i++) { insertNum = array[i]; for (j = i - 1; j >= 0 && array[j] > insertNum; j--) { array[j + 1] = array[j]; } array[j + 1] = inser...
5
public void prependVarPhi(final PhiJoinStmt stmt) { final List v = varphis[cfg.preOrderIndex(stmt.block())]; if (!v.contains(stmt)) { v.add(0, stmt); } }
1
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LogEntry logEntry = (LogEntry) o; if (text != null ? !text.equals(logEntry.text) : logEntry.text != null) return false; return true; }
5
public synchronized void removeListener(final CycLeaseManagerListener cycLeaseManagerListener) { //// Preconditions if (cycLeaseManagerListener == null) { throw new InvalidParameterException("cycLeaseManagerListener must not be null"); } assert listeners != null : "listeners must not be null"; ...
2
private String getPageHtml(WikiContext context, String name, String action) throws IOException { StringBuilder buffer = new StringBuilder(); String escapedName = escapeHTML(titlePrefix(action) + unescapedTitleFromName(name)); addHeader(context, escapedName, getTalkPage(context, name), buffer); ...
6
public void desconectar(){ connection = null; }
0
public boolean skipPast(String to) throws JSONException { boolean b; char c; int i; int j; int offset = 0; int length = to.length(); char[] circle = new char[length]; /* * First fill the circle buffer with as many characters as are in the ...
9
private void updateComboBox() { if (arrayDirty == true) { insertionSort(); } jEmployeeComboBox.removeAllItems(); int count = employees.size(); for(int x = 0;x<count;x++) { jEmployeeComboBox.addItem(employees.get(x).getFullName()); } }
2
public boolean deleteFourInRowHorizontal(int i,int j){ if(i < gridRows - 3 && tileGrid[i+1][j] != null && tileGrid[i+2][j] != null && tileGrid[i+3][j] != null && tileGrid[i][j].getTileType().equals(tileGrid[i+1][j].getTileType()) && tileGrid[i][j].getTileType()....
9
private boolean isFileValid(File file, String methodName) { // check if the file is invalid or not if (file == null) { System.out.println(name_ + "." + methodName + ": Warning - the given file is null."); return false; } String fileName = file...
3
public void Parse(String inputPacket, Memory InfoMem) { // Remove outer parentheses inputPacket = inputPacket.substring(1, inputPacket.length() - 1); // Split inputPacket into tokens by "(" and ")" delimiters String[] splitPacket = (inputPacket.split("[()]")); // Parse the first element into packet type an...
6
@Override protected void read(InputBuffer b) throws IOException, ParsingException { VariableLengthIntegerMessage length = getMessageFactory().parseVariableLengthIntegerMessage(b); b = b.getSubBuffer(length.length()); long l = length.getLong(); if (l > MAX_LENGTH || l < 0) { throw new ParsingException("List...
3
public boolean isPalindrome(String s) { if(s == null || s.length() == 0) return true; else{ int i=0; int j = s.length()-1; while(!isAlphanumeric(s.charAt(i))){ i++; if(i == s.length() ) return true; ...
9
public boolean checkForEnemyType(int a_xSrc, int a_xDest, int a_ySrc, int a_yDest, int a_type) { int min_x = Math.min(a_xSrc, a_xDest); int min_y = Math.min(a_ySrc, a_yDest); int max_x = Math.max(a_xSrc, a_xDest); int max_y = Math.max(a_ySrc, a_yDest); if(min_x < 0) min_x = ...
9
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Puzzle)) return false; Puzzle other = (Puzzle) obj; if (!Arrays.equals(image, other.image)) return false; if (name == null) { if (other.name != null) return fal...
8
public static Event parse(Event rawEvent) throws IOException { if(rawEvent.getHeader() == null) { return null; } if(rawEvent.getData() == null || !rawEvent.isRawData()) { return rawEvent; } IEventHeader header = rawEvent.getHeader(); BinaryIEventDa...
4
public ArrayList<Vehicle> GetOneVehicle(int VID) throws UnauthorizedUserException, BadConnectionException, DoubleEntryException { /* Variable Section Start */ /* Database and Query Preperation */ PreparedStatement statment = null; ResultSet results = null; ...
8
public void Solve() { List<Integer> primes = Euler.GetPrimes(_max); for (Iterator<Integer> it = primes.iterator(); it.hasNext();) { Integer prime = it.next(); String primeString = prime.toString(); for (int numberOfDigits = 1; numberOfDigits < primeString.length(); ...
8
public Manufacturer getManufacturer() { return manufacturer; }
0
private boolean versionCheck(String title) { if (this.type != UpdateType.NO_VERSION_CHECK) { final String localVersion = this.plugin.getDescription().getVersion(); if (title.split(delimiter).length == 2) { final String remoteVersion = title.split(delimiter)[1].split(" ")[...
5
private StateDist limitDfs(SearchState oldState, int curDist, int maxDist) { int estimatedCost = curDist + h.estimateCostToGoal(oldState); if (estimatedCost > maxDist) { if (estimatedCost >= OO) return null; Integer dist = statesWithUnexploredNodes.get(oldState.prevState); int prevDist...
8
@After public void tearDown() { }
0
@Override public void deploy(File zipFile, String targetPath) throws IOException, RemoteException { // TODO Auto-generated method stub if(!zipFile.exists()) { throw new RemoteException(zipFile+" is not exist."); } targetPath = pathStrConvert(targetPath); ArrayList<String> result = new ArrayList<Strin...
8
private void addPlayerButtonActionPerformed(java.awt.event.ActionEvent evt) { chooseBrain.showOpenDialog(controlFrame); }
0
public int getSocketOption(byte option) throws IllegalArgumentException, IOException { switch(option){ case SocketConnection.DELAY: return socket.getTcpNoDelay() ? 0 : 1; case SocketConnection.KEEPALIVE: return socket.getKeepAlive() ? 1 : 0; case SocketConnectio...
7
@Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child for(ListIterator<PComando> i = this._comando_.listIterator(); i.hasNext();) { if(i.next() == oldChild) { if(newChil...
3
public static void generateMaze(int x, int y, long seed) { GRID_WIDTH = x; GRID_HEIGHT = y; stack = new ArrayList<Cell>(); remainingCells = new ArrayList<Cell>(); // Init array of cells maze = new Cell[x][y]; // Reset maze and add cells to remainingcell list for (int i = 0; i < x; i++) for (int j...
5
private boolean handleSell(String[] parts) { if (parts.length < 3) { return false; } String id = parts[1]; Stock s = StockControl.queryStock(id); if (s == null) { return false; } int amount; try { amount = Inte...
4
public void removeObserver() { // listObserver = new ArrayList<Observer>(); }
0
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
*/ public void updateRowHeightsIfNeeded(Collection<Column> columns) { if (dynamicRowHeight()) { for (Column column : columns) { if (column.getRowCell(null).participatesInDynamicRowLayout()) { updateRowHeights(); break; } } } }
3
public RoadList() { initComponents(); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); RoadList.setAutoCreateRowSorter(true); Color c = new Color(63,70,73); ...
2
@Override public void onCoreRoomRequest(GetRoomRequest request) { String roomName = request.getRoomName(); if (!activeRooms.containsKey(roomName)) { try { if (validRoomName(roomName)) { if (!coreAdmin.destinationExists(roomName)) { coreAdmin.addDestination(roomName, false); System.out.print...
4
public static void main(String[] args) throws IOException { // TODO Auto-generated method stub File file = new File("C:/1.txt"); BufferedReader in = new BufferedReader(new FileReader(file)); String line; String subLine; while ((line = in.readLine()) != null) { char character = line.charAt(...
1
@Override public boolean activate() { // Fam is !null, Has urns, and inv not full final boolean valid = workLeft(); if ((valid && (GraniteMiner.curState == GraniteMiner.Status.NONE))) { GraniteMiner.curState = THIS_STATE; } else if (!valid && (GraniteMiner.curState == TH...
5
private void jButton0MouseMouseClicked(MouseEvent event) { this.dispose(); }
0
public void save() { if (poms != null) { try { init(); PrintWriter out = new PrintWriter(new FileWriter(poms)); out.println("# List of POM files for the package"); out.println("# Format of this file is:"); ...
3
public Object getCurrentElement() throws IteratorException { Object obj = null; // Will not advance iterator if (list != null) { int currIndex = listIterator.nextIndex(); obj = list.get(currIndex); } else { throw new IteratorException(); } return obj; }
1
public boolean singleWord() { return (this.a==null || this.b == null) && !(this.a == null && this.b == null); }
3
static private int jjMoveStringLiteralDfa4_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0); return 4; } switch(curChar) { cas...
9
private boolean recursive(Peg x, Peg y, Peg z, int n) { Action newAction = null; if (n > 0) { newAction = new Action(x, z, y, getCurrAction(), 1, n-1); actions.push(newAction); if (!TowersOfHanoi.repaintAndWait()) {return false;} // move n-1 disks from x...
8