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.io.*; | |
// Programa que imprime las posiciones en las que se puede mover la pieza de ajedrez Caballo dentro de un tablero de 8x8 | |
public class Ejecutable{ | |
public static void main(String args[]){ | |
int posX = 0, posY = 0, contMov = 0; | |
boolean flag; |
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.io.*; | |
class Program | |
{ | |
static int toInt(String c, int index) | |
{ | |
return c.charAt(index) - '0'; | |
} | |
public static void main(String arg[]) |
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
using System; | |
class Alphabet | |
{ | |
private char[]abc = new char[26]; | |
private int[] countUpper = new int[26]; | |
private int[] countLower = new int[26]; | |
public Alphabet() | |
{ |