Skip to content

Commit

Permalink
Initial puzzlechess android app
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Feb 22, 2011
0 parents commit d7baeb0
Show file tree
Hide file tree
Showing 94 changed files with 2,306 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="pieces"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>PuzzleChess</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Sat Aug 21 18:30:00 CEST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
27 changes: 27 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.noxlogic.games.puzzlechess"
android:versionCode="1"
android:versionName="1.0">
<application android:name=".MyApp"
android:label="@string/app_name"
android:debuggable="true"
android:icon="@drawable/wn">
<activity
android:name=".PuzzleChess"
android:label="puzzlechess"
android:screenOrientation="portrait">
</activity>

<activity android:name="Main"
android:label="PuzzleChess">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>

<uses-sdk android:minSdkVersion="3"></uses-sdk>
</manifest>
Binary file added bin/PuzzleChess.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/Board.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/History.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/Main$1.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/Main$2.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/Main$3.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/Main.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/MyApp.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R$attr.class
Binary file not shown.
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R$id.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R$layout.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R$menu.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R$string.class
Binary file not shown.
Binary file added bin/com/noxlogic/games/puzzlechess/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/resources.ap_
Binary file not shown.
11 changes: 11 additions & 0 deletions default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-3
91 changes: 91 additions & 0 deletions gen/com/noxlogic/games/puzzlechess/R.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package com.noxlogic.games.puzzlechess;

public final class R {
public static final class attr {
}
public static final class drawable {
public static final int abstrakt=0x7f020000;
public static final int bb=0x7f020001;
public static final int bk=0x7f020002;
public static final int bn=0x7f020003;
public static final int board_dark_1=0x7f020004;
public static final int board_dark_2=0x7f020005;
public static final int board_dark_3=0x7f020006;
public static final int board_dark_4=0x7f020007;
public static final int board_light_1=0x7f020008;
public static final int board_light_2=0x7f020009;
public static final int board_light_3=0x7f02000a;
public static final int board_light_4=0x7f02000b;
public static final int bp=0x7f02000c;
public static final int bq=0x7f02000d;
public static final int br=0x7f02000e;
public static final int checkmark2=0x7f02000f;
public static final int icon=0x7f020010;
public static final int wb=0x7f020011;
public static final int wk=0x7f020012;
public static final int wn=0x7f020013;
public static final int wp=0x7f020014;
public static final int wq=0x7f020015;
public static final int wr=0x7f020016;
}
public static final class id {
public static final int ChessPanel01=0x7f060000;
public static final int GameListView=0x7f06000f;
public static final int ImageView01=0x7f06000d;
public static final int ImageView02=0x7f06000e;
public static final int LinearLayout01=0x7f06000b;
public static final int LinearLayout02=0x7f06000c;
public static final int RatingBar01=0x7f060010;
public static final int TableLayout01=0x7f060001;
public static final int TableRow01=0x7f060002;
public static final int TableRow02=0x7f060005;
public static final int TableRow03=0x7f060008;
public static final int TextView01=0x7f060003;
public static final int TextView02=0x7f060004;
public static final int TextView03=0x7f060006;
public static final int TextView04=0x7f060007;
public static final int TextView05=0x7f060009;
public static final int TextView06=0x7f06000a;
public static final int about_menu_item=0x7f060015;
public static final int goal_menu_item=0x7f060013;
public static final int play_menu_item=0x7f060012;
public static final int reset_menu_item=0x7f060011;
public static final int theme_menu_item=0x7f060014;
}
public static final class layout {
public static final int chess_layout=0x7f030000;
public static final int mainmenu=0x7f030001;
public static final int mainmenu_listviewrow=0x7f030002;
}
public static final class menu {
public static final int contextmenu=0x7f050000;
public static final int gameoptionmenu=0x7f050001;
public static final int optionmenu=0x7f050002;
}
public static final class string {
public static final int ContextMenuPlay=0x7f040008;
public static final int ContextMenuReset=0x7f040007;
public static final int GameOptionMenuAbout=0x7f040004;
public static final int GameOptionMenuGoal=0x7f040001;
public static final int GameOptionMenuReset=0x7f040002;
public static final int GameOptionMenuTheme=0x7f040003;
public static final int OptionMenuAbout=0x7f040006;
public static final int OptionMenuResetAll=0x7f040005;
public static final int app_name=0x7f040000;
public static final int generalAboutButtonCaption=0x7f04000a;
public static final int generalAboutMessage=0x7f04000b;
public static final int generalAboutTitle=0x7f040009;
public static final int generalGoalButtonCaption=0x7f04000d;
public static final int generalGoalButtonResumeCaption=0x7f04000e;
public static final int generalGoalTitle=0x7f04000c;
public static final int modeLost=0x7f04000f;
public static final int modeWon=0x7f040010;
}
}
Binary file added res/drawable/abstrakt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/bb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/bk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/bn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_dark_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_dark_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_dark_3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_dark_4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_light_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_light_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_light_3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/board_light_4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/bp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/bq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/br.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/checkmark2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/wr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions res/layout/chess_layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">

<com.noxlogic.games.puzzlechess.ChessPanelView android:id="@+id/ChessPanel01" android:layout_width="320px" android:layout_height="320px"></com.noxlogic.games.puzzlechess.ChessPanelView>


<TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_margin="10px" android:stretchColumns="*">
<TableRow android:id="@+id/TableRow01">
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Moves left:" android:textColor="#ffffff"></TextView>
<TextView android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" android:textColor="#ffffff"></TextView>
</TableRow>
<TableRow android:id="@+id/TableRow02">
<TextView android:id="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Moves done:" android:textColor="#ffffff"></TextView>
<TextView android:id="@+id/TextView04" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" android:textColor="#ffffff"></TextView>
</TableRow>
<TableRow android:id="@+id/TableRow03">
<TextView android:id="@+id/TextView05" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Duration: " android:textColor="#ffffff"></TextView>
<TextView android:id="@+id/TextView06" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="00:00:00" android:textColor="#ffffff"></TextView>
</TableRow>
</TableLayout>
</LinearLayout>
43 changes: 43 additions & 0 deletions res/layout/mainmenu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_height="wrap_content"
android:layout_width="fill_parent">

<ImageView android:id="@+id/ImageView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/wk"></ImageView>

<TextView android:id="@+id/TextView01"
android:layout_height="wrap_content"
android:text="PuzzleChess"
android:textColor="#ffffff"
android:textSize="8pt"
android:textStyle="bold"
android:gravity="center_vertical|center_horizontal"
android:layout_width="fill_parent"
android:layout_weight="3"></TextView>

<ImageView android:id="@+id/ImageView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/wr"></ImageView>

</LinearLayout>

<TextView android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Please select one of the following puzzles:"></TextView>

<ListView android:id="@+id/GameListView"
android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="4"></ListView>





</LinearLayout>
44 changes: 44 additions & 0 deletions res/layout/mainmenu_listviewrow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:gravity="left|center"
android:layout_width="fill_parent"
android:paddingBottom="5px"
android:paddingTop="5px"
android:paddingLeft="5px">
<ImageView android:id="@+id/ImageView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></ImageView>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:orientation="vertical">
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:text="@+id/TextView01"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#0099CC"></TextView>
<ImageView android:id="@+id/ImageView02"
android:layout_height="20px"
android:layout_width="10px" android:layout_marginLeft="5px"></ImageView>
</LinearLayout>
<TextView android:text="@+id/TextView02"
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff"
android:textSize="4pt"></TextView>


</LinearLayout>
<RatingBar android:id="@+id/RatingBar01"
style="?android:attr/ratingBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:layout_gravity="right" android:numStars="5" android:layout_marginRight="7px"></RatingBar>
</LinearLayout>
12 changes: 12 additions & 0 deletions res/menu/contextmenu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/reset_menu_item"
android:title="@string/ContextMenuReset"
android:alphabeticShortcut="R"
android:icon="@android:drawable/ic_menu_revert" />
<item android:id="@+id/play_menu_item"
android:title="@string/ContextMenuPlay"
android:alphabeticShortcut="P"
android:icon="@android:drawable/ic_menu_view" />

</menu>
19 changes: 19 additions & 0 deletions res/menu/gameoptionmenu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/goal_menu_item"
android:title="@string/GameOptionMenuGoal"
android:alphabeticShortcut="G"
android:icon="@android:drawable/ic_menu_compass" />
<item android:id="@+id/theme_menu_item"
android:title="@string/GameOptionMenuTheme"
android:alphabeticShortcut="T"
android:icon="@android:drawable/ic_menu_gallery" />
<item android:id="@+id/reset_menu_item"
android:title="@string/GameOptionMenuReset"
android:alphabeticShortcut="R"
android:icon="@android:drawable/ic_menu_revert" />
<item android:id="@+id/about_menu_item"
android:title="@string/GameOptionMenuAbout"
android:alphabeticShortcut="A"
android:icon="@android:drawable/ic_menu_info_details" />
</menu>
11 changes: 11 additions & 0 deletions res/menu/optionmenu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/reset_menu_item"
android:title="@string/OptionMenuResetAll"
android:alphabeticShortcut="R"
android:icon="@android:drawable/ic_menu_revert" />
<item android:id="@+id/about_menu_item"
android:title="@string/OptionMenuAbout"
android:alphabeticShortcut="A"
android:icon="@android:drawable/ic_menu_info_details" />
</menu>
27 changes: 27 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Chesspuzzles</string>

<string name="GameOptionMenuGoal">Goal</string>
<string name="GameOptionMenuReset">Reset game</string>
<string name="GameOptionMenuTheme">Change theme</string>
<string name="GameOptionMenuAbout">About</string>


<string name="OptionMenuResetAll">Reset all games</string>
<string name="OptionMenuAbout">About</string>

<string name="ContextMenuReset">Reset this game</string>
<string name="ContextMenuPlay">Play this game</string>

<string name="generalAboutTitle">About...</string>
<string name="generalAboutButtonCaption">Close</string>
<string name="generalAboutMessage">ChessPuzzles is created by NoxLogic. For more info visit www.noxlogic.nl\n\nCopyright (C) 2010 NoxLogic</string>

<string name="generalGoalTitle">Goal...</string>
<string name="generalGoalButtonCaption">Start game</string>
<string name="generalGoalButtonResumeCaption">Resume</string>

<string name="modeLost">You have lost :()</string>
<string name="modeWon">You have won!</string>
</resources>
Loading

0 comments on commit d7baeb0

Please sign in to comment.