├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── drawable │ │ │ │ ├── rps_10.png │ │ │ │ ├── rps_15.png │ │ │ │ ├── rps_20.png │ │ │ │ ├── rps_30.png │ │ │ │ ├── rps_logo.png │ │ │ │ ├── rps_play.png │ │ │ │ ├── you_rock.png │ │ │ │ ├── you_scis.png │ │ │ │ ├── comp_paper.png │ │ │ │ ├── comp_rock.png │ │ │ │ ├── comp_scis.png │ │ │ │ ├── rps_guide.jpg │ │ │ │ ├── rps_rules.png │ │ │ │ ├── you_paper.png │ │ │ │ ├── ic_launcher_foreground.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ └── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_rules.xml │ │ │ │ ├── activity_level.xml │ │ │ │ ├── activity_play10.xml │ │ │ │ ├── activity_play15.xml │ │ │ │ ├── activity_play30.xml │ │ │ │ ├── activity_play20.xml │ │ │ │ └── activity_play.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── najmus │ │ │ │ └── rps │ │ │ │ ├── Rules.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── Level.java │ │ │ │ ├── Play.java │ │ │ │ ├── Play30.java │ │ │ │ ├── Play10.java │ │ │ │ ├── Play15.java │ │ │ │ └── Play20.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── najmus │ │ │ └── rps │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── najmus │ │ └── rps │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── caches │ └── build_file_checksums.ser ├── runConfigurations.xml ├── gradle.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── .gitignore ├── WorkingDetail ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RPS 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_10.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_15.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_20.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_30.png -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_play.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/you_rock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/you_rock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/you_scis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/you_scis.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/comp_paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/comp_paper.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/comp_rock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/comp_rock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/comp_scis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/comp_scis.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_guide.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_guide.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/rps_rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/rps_rules.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/you_paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/drawable/you_paper.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NAJMUS7834/AiBasedRpsGame/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/libraries 5 | /.idea/modules.xml 6 | /.idea/workspace.xml 7 | .DS_Store 8 | /build 9 | /captures 10 | .externalNativeBuild 11 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Apr 21 19:43:13 IST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #02c9e2 4 | #005b40 5 | #f3a94e 6 | #1b1819 7 | #ffffff 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/najmus/rps/Rules.java: -------------------------------------------------------------------------------- 1 | package com.example.najmus.rps; 2 | /*==================================== 3 | Author : NAJMUS SEEMAB 4 | ======================================*/ 5 | 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.os.Bundle; 8 | 9 | public class Rules extends AppCompatActivity { 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_rules); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/najmus/rps/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.najmus.rps; 2 | /*==================================== 3 | Author : NAJMUS SEEMAB 4 | ======================================*/ 5 | 6 | import org.junit.Test; 7 | 8 | import static org.junit.Assert.*; 9 | 10 | /** 11 | * Example local unit test, which will execute on the development machine (host). 12 | * 13 | * @see Testing documentation 14 | */ 15 | public class ExampleUnitTest { 16 | @Test 17 | public void addition_isCorrect() { 18 | assertEquals ( 4, 2 + 2 ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /WorkingDetail: -------------------------------------------------------------------------------- 1 | Rock–paper–scissors is a zero-sum hand game usually played between two people, 2 | in which each player simultaneously forms one of three shapes with an 3 | outstretched hand. These shapes are ROCK (✊ a simple fist), PAPER 4 | (✋ a flat hand), and SCISSORS (✌️ a fist with the index and middle 5 | fingers together forming a V). The game has only three possible outcomes other 6 | than a tie: a player who decides to play rock will beat another player who has 7 | chosen scissors (rock crushes scissors) but will lose to one who has played paper 8 | (paper covers rock); a play of paper will lose to a play of scissors 9 | (scissors cut paper). If both players choose the same shape, 10 | the game is tied and is usually immediately replayed to break the tie. 11 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 27 5 | defaultConfig { 6 | applicationId "com.example.najmus.rps" 7 | minSdkVersion 16 8 | targetSdkVersion 27 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'com.android.support:appcompat-v7:27.1.1' 24 | implementation 'com.android.support.constraint:constraint-layout:1.1.0' 25 | testImplementation 'junit:junit:4.12' 26 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 27 | 28 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 29 | } 30 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/najmus/rps/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.najmus.rps; 2 | /*==================================== 3 | Author : NAJMUS SEEMAB 4 | ======================================*/ 5 | 6 | 7 | import android.content.Context; 8 | import android.support.test.InstrumentationRegistry; 9 | import android.support.test.runner.AndroidJUnit4; 10 | 11 | import org.junit.Test; 12 | import org.junit.runner.RunWith; 13 | 14 | import static org.junit.Assert.*; 15 | 16 | /** 17 | * Instrumentation test, which will execute on an Android device. 18 | * 19 | * @see Testing documentation 20 | */ 21 | @RunWith(AndroidJUnit4.class) 22 | public class ExampleInstrumentedTest { 23 | @Test 24 | public void useAppContext() throws Exception { 25 | // Context of the app under test. 26 | Context appContext = InstrumentationRegistry.getTargetContext(); 27 | 28 | assertEquals("com.example.tmlah.rockpaperscissors", appContext.getPackageName()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AiBasedRpsGame 2 | AiBasedRpsGame is a artificial intelligence based android game application.In which 3 | RPS game is played between user and AI with 4 levels and 1 unlimited mode. 4 | 5 | ![videotogif_2018 04 22_20 28 58](https://user-images.githubusercontent.com/31741209/39122160-94565afa-4711-11e8-8d24-7a3b8878916a.gif) 6 | 7 | Screenshots 8 | 9 | ![screenshot_2018-04-22-20-26-59-329_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122203-c9be8cc6-4711-11e8-87b3-700113b5bba2.png) 10 | 11 | ![screenshot_2018-04-22-20-27-16-626_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122210-d1919ab0-4711-11e8-8852-76f0f9b84369.png) 12 | 13 | ![screenshot_2018-04-22-20-27-27-946_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122219-da6001b8-4711-11e8-905c-4297e9e43dfd.png) 14 | 15 | ![screenshot_2018-04-22-20-27-38-249_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122242-e5649b14-4711-11e8-8e1d-089d2c66bd21.png) 16 | 17 | ![screenshot_2018-04-22-20-27-44-754_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122252-ee0f0060-4711-11e8-8e3d-fe5434b1bb05.png) 18 | 19 | ![screenshot_2018-04-22-20-27-52-392_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122262-f800df26-4711-11e8-8931-77370ec5b35e.png) 20 | 21 | ![screenshot_2018-04-22-20-28-05-013_com example najmus rps](https://user-images.githubusercontent.com/31741209/39122272-00ed9a7a-4712-11e8-9b29-19a17a14cc75.png) 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/najmus/rps/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.najmus.rps; 2 | /*==================================== 3 | Author : NAJMUS SEEMAB 4 | ======================================*/ 5 | 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.os.Bundle;import android.content.Intent; 8 | import android.support.v7.app.AppCompatActivity; 9 | import android.os.Bundle; 10 | import android.view.View; 11 | import android.widget.Button; 12 | import android.widget.ImageView; 13 | 14 | public class MainActivity extends AppCompatActivity { 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.activity_main); 20 | 21 | final ImageView showRules = (ImageView) findViewById(R.id.iv_rules); 22 | 23 | showRules.setOnClickListener(new View.OnClickListener() { 24 | @Override 25 | public void onClick(View v) { 26 | Intent viewRules = new Intent(MainActivity.this,Rules.class); 27 | startActivity(viewRules); 28 | 29 | 30 | } 31 | }); 32 | 33 | final ImageView playGame = (ImageView) findViewById(R.id.iv_play); 34 | 35 | playGame.setOnClickListener(new View.OnClickListener() { 36 | @Override 37 | public void onClick(View v) { 38 | Intent GamePlay = new Intent(MainActivity.this, Level.class); 39 | startActivity(GamePlay); 40 | } 41 | }); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 21 | 22 | 36 | 37 | 38 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/najmus/rps/Level.java: -------------------------------------------------------------------------------- 1 | package com.example.najmus.rps; 2 | /*==================================== 3 | Author : NAJMUS SEEMAB 4 | ======================================*/ 5 | 6 | import android.content.Intent; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.os.Bundle; 9 | import android.view.View; 10 | import android.widget.Button; 11 | import android.widget.ImageView; 12 | 13 | public class Level extends AppCompatActivity { 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.activity_level); 19 | 20 | final ImageView play10 = (ImageView) findViewById(R.id.iv_L10); 21 | 22 | play10.setOnClickListener(new View.OnClickListener() { 23 | @Override 24 | public void onClick(View v) { 25 | Intent Level10 = new Intent(Level.this, Play10.class); 26 | startActivity(Level10); 27 | } 28 | }); 29 | 30 | final ImageView play15 = (ImageView) findViewById(R.id.iv_L15); 31 | 32 | play15.setOnClickListener(new View.OnClickListener() { 33 | @Override 34 | public void onClick(View v) { 35 | Intent Level15 = new Intent(Level.this, Play15.class); 36 | startActivity(Level15); 37 | } 38 | }); 39 | 40 | final ImageView play20 = (ImageView) findViewById(R.id.iv_L20); 41 | 42 | play20.setOnClickListener(new View.OnClickListener() { 43 | @Override 44 | public void onClick(View v) { 45 | Intent Level20 = new Intent(Level.this, Play20.class); 46 | startActivity(Level20); 47 | } 48 | }); 49 | 50 | final ImageView play30 = (ImageView) findViewById(R.id.iv_L30); 51 | 52 | play30.setOnClickListener(new View.OnClickListener() { 53 | @Override 54 | public void onClick(View v) { 55 | Intent Level30 = new Intent(Level.this, Play30.class); 56 | startActivity(Level30); 57 | } 58 | }); 59 | 60 | 61 | final Button playGame = (Button) findViewById(R.id.b_marathon); 62 | 63 | playGame.setOnClickListener(new View.OnClickListener() { 64 | @Override 65 | public void onClick(View v) { 66 | Intent Marathon = new Intent(Level.this, Play.class); 67 | startActivity(Marathon); 68 | } 69 | }); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_rules.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 28 | 29 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_level.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 24 | 25 | 38 | 39 | 49 | 50 | 62 | 63 |