Module org.example

Class Utilities

java.lang.Object
cz.cvut.fel.pjv.Utils.Utilities

public class Utilities
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Utilities()  
  • Method Summary

    Modifier and Type Method Description
    static Game loadChessboard​(java.lang.String filepath)
    Method for load game.
    static void saveChessboard​(Game game, java.lang.String filepath)
    Save game into the binary file.

    Methods inherited from class java.lang.Object

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

    • Utilities

      public Utilities()
  • Method Details

    • saveChessboard

      public static void saveChessboard​(Game game, java.lang.String filepath)
      Save game into the binary file.
      Parameters:
      game -
      filepath -
    • loadChessboard

      public static Game loadChessboard​(java.lang.String filepath)
      Method for load game.
      Parameters:
      filepath - location of binary file.
      Returns: