Skip to content

Commit af458bf

Browse files
author
hussienalrubaye
committed
tict tac toy online
1 parent 6a9bc1b commit af458bf

File tree

75 files changed

+1542
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1542
-20
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

TicTacToyGame/TicTacToyLocal2/.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyLocal2/.idea/gradle.xml

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyLocal2/.idea/misc.xml

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyLocal2/.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyLocal2/.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

TicTacToyGame/app/build.gradle TicTacToyGame/TicTacToyLocal2/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
5+
buildToolsVersion "25.0.3"
66
defaultConfig {
7-
applicationId "com.hussein.tictactoygame"
8-
minSdkVersion 12
7+
applicationId "com.hussein.tictactoylocal"
8+
minSdkVersion 14
99
targetSdkVersion 25
1010
versionCode 1
1111
versionName "1.0"

TicTacToyGame/app/src/androidTest/java/com/hussein/tictactoygame/ExampleInstrumentedTest.java TicTacToyGame/TicTacToyLocal2/app/src/androidTest/java/com/hussein/tictactoylocal/ExampleInstrumentedTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.hussein.tictactoygame;
1+
package com.hussein.tictactoylocal;
22

33
import android.content.Context;
44
import android.support.test.InstrumentationRegistry;
@@ -21,6 +21,6 @@ public void useAppContext() throws Exception {
2121
// Context of the app under test.
2222
Context appContext = InstrumentationRegistry.getTargetContext();
2323

24-
assertEquals("com.hussein.tictactoygame", appContext.getPackageName());
24+
assertEquals("com.hussein.tictactoylocal", appContext.getPackageName());
2525
}
2626
}

TicTacToyGame/app/src/main/AndroidManifest.xml TicTacToyGame/TicTacToyLocal2/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.hussein.tictactoygame">
3+
package="com.hussein.tictactoylocal">
44

55
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher"
66
android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round"

TicTacToyGame/app/src/main/java/com/hussein/tictactoygame/MainActivity.java TicTacToyGame/TicTacToyLocal2/app/src/main/java/com/hussein/tictactoylocal/MainActivity.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.hussein.tictactoygame;
1+
package com.hussein.tictactoylocal;
22

33
import android.graphics.Color;
44
import android.support.v7.app.AppCompatActivity;
@@ -26,7 +26,7 @@ public void BuClick(View view) {
2626

2727
case R.id.bu1:
2828
CellID=1;
29-
break;
29+
break;
3030

3131
case R.id.bu2:
3232
CellID=2;
@@ -94,7 +94,7 @@ void CheckWiner(){
9494
int Winer=-1;
9595
//row 1
9696
if (Player1.contains(1) && Player1.contains(2) && Player1.contains(3)) {
97-
Winer=1 ;
97+
Winer=1 ;
9898
}
9999
if (Player2.contains(1) && Player2.contains(2) && Player2.contains(3)) {
100100
Winer=2 ;
@@ -144,7 +144,7 @@ void CheckWiner(){
144144

145145

146146
if ( Winer !=-1){
147-
// We have winer
147+
// We have winer
148148

149149
if (Winer==1){
150150
Toast.makeText(this,"Player 1 is winner",Toast.LENGTH_LONG).show();
@@ -212,10 +212,10 @@ void AutoPlay(){
212212
buSelected=(Button) findViewById(R.id.bu9);
213213
break;
214214
default:
215-
buSelected=(Button) findViewById(R.id.bu1);
216-
break;
215+
buSelected=(Button) findViewById(R.id.bu1);
216+
break;
217217

218218
}
219219
PlayGame(CellID, buSelected);
220220
}
221-
}
221+
}

TicTacToyGame/app/src/main/res/layout/activity_main.xml TicTacToyGame/TicTacToyLocal2/app/src/main/res/layout/activity_main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@
9696
android:layout_height="50pt"
9797
android:text=" " />
9898
</TableRow>
99-
</TableLayout>
99+
</TableLayout>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">TicTacToyLocal</string>
3+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<resources>
2+
3+
<!-- Base application theme. -->
4+
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
5+
<!-- Customize your theme here. -->
6+
<item name="colorPrimary">@color/colorPrimary</item>
7+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
8+
<item name="colorAccent">@color/colorAccent</item>
9+
</style>
10+
11+
</resources>

TicTacToyGame/app/src/test/java/com/hussein/tictactoygame/ExampleUnitTest.java TicTacToyGame/TicTacToyLocal2/app/src/test/java/com/hussein/tictactoylocal/ExampleUnitTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.hussein.tictactoygame;
1+
package com.hussein.tictactoylocal;
22

33
import org.junit.Test;
44

TicTacToyGame/build.gradle TicTacToyGame/TicTacToyLocal2/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.4.0-alpha6'
8+
classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

TicTacToyGame/gradle/wrapper/gradle-wrapper.properties TicTacToyGame/TicTacToyLocal2/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Sun Apr 30 09:53:37 EDT 2017
1+
#Wed May 03 07:01:01 EDT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
File renamed without changes.
File renamed without changes.
File renamed without changes.
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

TicTacToyGame/TicTacToyOnline/.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyOnline/.idea/gradle.xml

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyOnline/.idea/misc.xml

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyOnline/.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TicTacToyGame/TicTacToyOnline/.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.3"
6+
defaultConfig {
7+
applicationId "com.hussein.tictactoyonline"
8+
minSdkVersion 14
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25+
exclude group: 'com.android.support', module: 'support-annotations'
26+
})
27+
compile 'com.android.support:appcompat-v7:25.3.1'
28+
testCompile 'junit:junit:4.12'
29+
compile 'com.android.support.constraint:constraint-layout:1.0.2'
30+
compile 'com.google.firebase:firebase-core:10.2.1'
31+
compile 'com.google.firebase:firebase-auth:10.2.1'
32+
compile 'com.google.firebase:firebase-database:10.2.1'
33+
}
34+
35+
36+
37+
38+
39+
apply plugin: 'com.google.gms.google-services'

0 commit comments

Comments
 (0)