public final class TimeControl extends Object
Constructor and Description |
---|
TimeControl(long whiteTime,
long blackTime,
long whiteInc,
long blackInc)
Constructs an instance using the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
long |
getBlackInc()
Returns black's time increment per move in milliseconds.
|
long |
getBlackTime()
Returns black's initial time in milliseconds.
|
long |
getWhiteInc()
Returns white's time increment per move in milliseconds.
|
long |
getWhiteTime()
Returns white's initial time in milliseconds.
|
public TimeControl(long whiteTime, long blackTime, long whiteInc, long blackInc)
whiteTime
- White's initial time in milliseconds.blackTime
- Black's initial time in milliseconds.whiteInc
- White's time increment per move in milliseconds.blackInc
- Black's time increment per move in milliseconds.public long getWhiteTime()
public long getBlackTime()
public long getWhiteInc()
public long getBlackInc()
Copyright © 2020. All rights reserved.