Back to project page abalone-android.
The source code is released under:
GNU General Public License
If you think the Android project abalone-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.
/** * Copyright (c) 2010-2011 Yaroslav Geryatovich, Alexander Yakushev * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. *///from ww w . ja v a 2 s . co m package com.bytopia.abalone.mechanics; /** * Weak configuration of AI. Uses two-step depth analysis, 25% of the time * performs stupid moves. Level "Normal". * * @author Bytopia */ public class AiBeatrice extends ArtificialIntilligence { public Move requestMove(Game g) { return findNextMove(g.getBoard(), g.getSide(), 2, STUPID, false); } }