@ -6,4 +6,11 @@ public class Figure {
this.position = -1;
}
public void setPosition(int position) {
this.position = position;
public int getPosition() {
return position;
@ -8,10 +8,9 @@ public class Game {
public static void main(String[] args) {
Game g = new Game();
g.startGame();
public void startGame() {
public Game() {
this.gb = new Gameboard();
gb.initGameboard();
p1 = new Player("Rot");
@ -1,4 +1,3 @@
import java.lang.reflect.Array;
import java.util.Arrays;
public class Gameboard {
@ -1,5 +1,3 @@
import javax.sound.midi.Soundbank;
public class Player {
@ -1,10 +1,4 @@
import static org.assertj.core.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
public class GameTest {
@ -1,11 +1,7 @@
import org.junit.jupiter.api.DisplayName;
public class PlayerTest {