Class Pista

java.lang.Object
java.lang.Thread
backend.corsaCavalli.Pista
All Implemented Interfaces:
Runnable

public class Pista extends Thread
This class used to create a logic
  • Constructor Details

    • Pista

      public Pista()
      This constructor prepares horse and creates thread for any horse
  • Method Details

    • run

      public void run()
      This is a method run for thread to use to playing a game
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getCavallo

      public ArrayList<Cavallo> getCavallo()
    • Win

      public String Win()