got rid of braces
This commit is contained in:
parent
365606f0ca
commit
511b1ef3f1
@ -154,8 +154,8 @@ class MainActivity : AppCompatActivity(), View.OnClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun checkGameState(button: Button) {
|
private fun checkGameState(button: Button) {
|
||||||
if (mGameWon != GameOption.No) { return } else {
|
if (mGameWon != GameOption.No) return else {
|
||||||
if (button.text != "") { return } else {
|
if (button.text != "") return else {
|
||||||
val buttonText = mGameboard.placePlayerPiece()
|
val buttonText = mGameboard.placePlayerPiece()
|
||||||
button.text = buttonText
|
button.text = buttonText
|
||||||
val winner = isGameWon()
|
val winner = isGameWon()
|
||||||
|
Loading…
Reference in New Issue
Block a user