Back to project page go-android.
The source code is released under:
MIT License
If you think the Android project go-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.pololanguage.pologo; //from www . j av a 2 s. c om enum StoneColor { BLACK (R.drawable.stone_black), WHITE (R.drawable.stone_white); int resource; StoneColor(int resource) { this.resource = resource; } int getResource() { return resource; } StoneColor getOther() { if (this == BLACK) return WHITE; else return BLACK; } }