diff --git a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt index 6f22bdd..552b5b2 100644 --- a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt +++ b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt @@ -1,16 +1,17 @@ package com.wyattjmiller.tictactoeapp -import androidx.appcompat.app.AppCompatActivity import android.os.Bundle +import android.util.Log import android.view.View import android.widget.Button -import android.widget.GridLayout +import android.widget.TextView +import androidx.appcompat.app.AppCompatActivity +import androidx.gridlayout.widget.GridLayout import androidx.appcompat.app.AppCompatDelegate import androidx.fragment.app.DialogFragment -class MainActivity : AppCompatActivity() { - - // Private variables per the layout +class MainActivity : AppCompatActivity(), View.OnClickListener { + // Private member variables per the layout private lateinit var mGameboardGridLayout: GridLayout private lateinit var mGameboardButtonOne: Button private lateinit var mGameboardButtonTwo: Button @@ -23,22 +24,210 @@ class MainActivity : AppCompatActivity() { private lateinit var mGameboardButtonNine: Button private lateinit var mGameStatsButton: Button private lateinit var mResetGameButton: Button + private lateinit var mGameStatDialog: DialogFragment + private lateinit var mGameStatusTextView: TextView // Private variables - other variables - private lateinit var mResetDialog: DialogFragment + private lateinit var mAllButtonList: List