Package rs.ac.bg.etf.engine
Class Match
java.lang.Object
rs.ac.bg.etf.engine.Match
public class Match
extends java.lang.Object
Class representing a single match between two players.
- Author:
- Vladimir, Adrian
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int[]
playMatch()
Simulation of a single match between two players.
-
Constructor Details
-
Match
- Parameters:
roundsCount
- number of rounds in a single matchplayer1
- player oneplayer2
- player twoerrorRate
- [0-100] chance of a player making a mistake
-
-
Method Details
-
playMatch
public int[] playMatch()Simulation of a single match between two players.- Returns:
- returns a 2-element 1d-array of players' gains
-