top of page

Code Behind:

User, Around the World

   User

I created the User class initially, and each member of the team continued to add properties to user as they saw fit.  I added properties such as gameShots (recorded all their coordinates), and favorite color (a fun function that lets the users personalize their screen).  User was important for making sure each player had their own stats recorded.  There would be nothing worse for a dartboard scorekeeper than to have it announce the wrong winner at the end of the game.  User was a simple class of stat tracking, but critical to different result pages.

​

Around the World

I wrote the code for the main UI function of Around the World.  In Around the World, the players try and hit the number 1 through 20 in order.  I created a subplot for each player that displays where on the board their current target is, and updates as they hit it.  The plot is used to help inexperienced players find their sliver target faster, while also giving a visual difference in player score spread.  Around the World was by far the easiest class/game to code.  There is no arithmetic involved, no complex point tracking, and no plot twists.  The game can only get messed up if the order of darts is input incorrectly, so I spent time figuring out how to delete the incorrectly entered round before moving on. 

​

​

Below is each class's properties, methods, and events explained in more detail.

user.PNG
ATW(1).PNG
ATW(2).PNG
Code userATW: About

Follow

  • LinkedIn

Contact

805 757 1685

Address

2908 Channing Way
Berkeley, California 94704
USA

©2017 by Kenneth Barton. Proudly created with Wix.com

bottom of page