Package test.gameTest
Class BoardTest
- java.lang.Object
-
- test.gameTest.BoardTest
-
public class BoardTest extends java.lang.ObjectClass for testing the board.This class tests basic functions of the board in its main method. (see also
Board)- Author:
- Benni
-
-
Constructor Summary
Constructors Constructor Description BoardTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)The main method
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
The main methodFirstly this method makes all essentials for the board. Then it constructs a board. (Here with only 1 player) Then it makes a few moves on the board and prints out the results after each. It also makes a rudimentary unit test which checks if isFulfilledCity(), isFulfilledRegion() and to an extend updateBoard() works. (see also
Board.isFulfilledCity(CityContract),Board.isFulfilledRegion(RegionContract),Board.updateBoard(Move))- Parameters:
args- command line arguments (have no effect)
-
-