Giter Site home page Giter Site logo

android-numberslider's Introduction

Number Slider Game

by Sam Pullman

This is an implementation of the 15 puzzle and 8 puzzle for android with the following features:

  • Tap to move a single square or a whole row of squares.
  • Scramble and undo buttons.
  • Automated solver, and automatic calculation of the number of moves in the optimal solution for the 8 puzzle.
  • Choose from several preset images, or choose a custom image from the phone.

Instructions for getting this project up and running from the command line.

If you are an Eclipse/IntelliJ/NetBeans user you should replace any shell commands with an action appropriate to your IDE. The 'update command' I will be referring to is simply: android update project -p .

  1. Clone this repository to a directory of your choice. This directory will be referred to as PROJ_HOME.

  2. Download Action Bar Sherlock here: http://actionbarsherlock.com/ and extract the contents of the library subfolder into a folder called abs_library in the directory PROJ_HOME resides in (NOT into PROJ_HOME itself). Run the update command in the abs_library folder. If you already have ABS somewhere on your computer, you can change the reference in PROJ_HOME/numberSliderGameLib/project.properties to point to its location.

  3. cd into PROJ_HOME/numberSliderGameLib/gridlayout/ and run the update command.

  4. cd into PROJ_HOME/numberSliderGameLib/ (up one level) and run the update command.

  5. cd into PROJ_HOME/numberSliderGamePaid/ and run the update command. If you wish to build the free version, run the command in numberSliderGameFree.

  6. The project is now ready to be built. There is a script included in the Paid/Free directories called "run" that cleans, debugs, and installs the app on whatever device you have connected. You can use the standard ant commands (clean, debug, etc.), although to release you would have to use your own keystore and refer to it in the ant.properties file in both the Lib and Paid/Free directories.

  7. Make changes in the numberSliderGameLib project, and they will be reflected in both the Paid and Free projects. All you need to do is build the Paid/Free project and install it. Note that the Lib project cannot be installed as a standalone app.

  8. Let me know if you have any issues or questions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.