Package test.gameTest

Class RandomAiTest


  • public class RandomAiTest
    extends java.lang.Object
    Class for testing the random Ai

    This class tests basic functions of the randomAi in its main method. (see also RandomAIPlayer)

    Author:
    Benni
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomAiTest()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Firstly this method makes all essentials for the board.
      • Methods inherited from class java.lang.Object

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

      • RandomAiTest

        public RandomAiTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Firstly this method makes all essentials for the board. Then it constructs a board. (Here with only 1 player) Then it uses the debug constructor from RandomAIPlayer to construct an RandomAIPlayer. (see also RandomAIPlayer) It lets the AI-Player make some amount of moves and prints out the move and the board after each turn.
        Parameters:
        args - command line arguments (have no effect)