Package test.gameTest

Class BoardTest


  • public class BoardTest
    extends java.lang.Object
    Class 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 void main​(java.lang.String[] args)
      The main method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoardTest

        public BoardTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        The main method

        Firstly 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)