You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
340 B
21 lines
340 B
package de.fd.fh;
|
|
|
|
public class Figure
|
|
{
|
|
public static final int fieldSize = 64;
|
|
|
|
public boolean moveAllowed(int src, int dst, int[] field)
|
|
{
|
|
if (src == dst)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
if (field.length == fieldSize)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|