The app is done as Android Basics: User Input project. So I made it project programmatically and will introduce You what I have done overall.
This app keeps score points in the game of chess. The screen is divided into two parts, every part consists of:
- Player name
TextView
that displays the score using methodsdisplayForPlayer1
anddisplayForPlayer2
- Three buttons:
Victory
button which increasing the score for victorious player by 1 pointLoss
button which leaves score of game unchanged, according to the rules of the game of chessDraw
button which button which increasing the score for each player by 0.5 pointReset
button which resets the score for both players back to 0