Back to project page noughts-and-crosses-android.
The source code is released under:
MIT License
If you think the Android project noughts-and-crosses-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.JamesWhite.NoughtsAndCrosses; //from ww w. j a va 2 s .c o m /** * Player basic info about the player * * @author James White * */ public class Player { private String name; private int type; // -1 or 1 (represents Nought or Cross) /** * getName * * @return the name */ public String getName() { return name; } /** * setName * * @param name the name to set */ public void setName(String name) { this.name = name; } /** * getType * * @return the type the player is using, 1 or 0 */ public int getType() { return type; } /** * setType * * @param type set the type the player is using, 1 or 0 */ public void setType(int type) { this.type = type; } }