├── .classpath ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── LICENSE.txt ├── README.md ├── libs ├── domob_android_sdk.jar └── umeng_sdk.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── drawable │ ├── bg.png │ ├── kill.png │ ├── menubg.jpg │ ├── qp1.jpg │ ├── qz.png │ └── sel.png ├── layout │ ├── dialog.xml │ └── main.xml ├── menu │ └── option_menu.xml ├── values-zh-rCN │ └── strings.xml └── values │ └── strings.xml └── src └── com └── onezeros └── chinesechess ├── AI.java ├── ChessboardView.java └── ChineseChessActivity.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ChineseChess 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.5 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.5 12 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Zhijie Lee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ChineseChess4Android 2 | ==================== 3 | 4 | a android version of the Chinese Chess game, which is not very difficult to defeat -------------------------------------------------------------------------------- /libs/domob_android_sdk.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/libs/domob_android_sdk.jar -------------------------------------------------------------------------------- /libs/umeng_sdk.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/libs/umeng_sdk.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-15 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /res/drawable/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/bg.png -------------------------------------------------------------------------------- /res/drawable/kill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/kill.png -------------------------------------------------------------------------------- /res/drawable/menubg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/menubg.jpg -------------------------------------------------------------------------------- /res/drawable/qp1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/qp1.jpg -------------------------------------------------------------------------------- /res/drawable/qz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/qz.png -------------------------------------------------------------------------------- /res/drawable/sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhijie/ChineseChess4Android/2bf9d10115353e17a1e87885a0c7231326b78bf2/res/drawable/sel.png -------------------------------------------------------------------------------- /res/layout/dialog.xml: -------------------------------------------------------------------------------- 1 | 7 | 13 | 19 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 13 | 14 | 19 | 20 | 28 | 29 | 34 | 35 | 36 | 37 | 42 |