got rid of braces

This commit is contained in:
Wyatt J. Miller 2020-09-18 18:50:45 -04:00
parent 365606f0ca
commit 511b1ef3f1

View File

@ -154,8 +154,8 @@ class MainActivity : AppCompatActivity(), View.OnClickListener {
}
private fun checkGameState(button: Button) {
if (mGameWon != GameOption.No) { return } else {
if (button.text != "") { return } else {
if (mGameWon != GameOption.No) return else {
if (button.text != "") return else {
val buttonText = mGameboard.placePlayerPiece()
button.text = buttonText
val winner = isGameWon()