Class Game

java.lang.Object
rs.ac.bg.etf.engine.Game

public class Game
extends java.lang.Object
Runnable class representing the game engine. Cannot be instantiated.
Author:
Vladimir, Adrian
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • main

      public static void main​(java.lang.String[] args)
      Parameters:
      args - args[0] must be relative or absolute path to the configuration file.
         args[1] must be relative or absolute path to the simulation output file.

      Configuration file format (comma separated values):

      roundCount,subCount,addCount,memorizeResult,errorRate
      player1SimpleClassName,numberOfInstances1
      player2SimpleClassName,numberOfInstances2
      player3SimpleClassName,numberOfInstances3
      ...


      • roundCount - number of rounds in a single match
      • subCount - lowest subCount players are eliminated from the game
      • addCount - highest addCount players are added for the next game
      • memorizeResults - 1 represents accumulating game results after each game ends, 0 represents resetting game results after each game
      • errorRate - [0-100] chance of a player making a mistake
      • playerSimpleClassName - simple class name of the class derived from the Player class
      • numberOfInstances - number of instances of playerSimpleClassName