GithubHelp home page GithubHelp logo

isabella232 / appengine-endpoints-tictactoe-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-endpoints-tictactoe-android

0.0 0.0 0.0 13.35 MB

A simple client for a Tic Tac Toe game using Google Cloud Endpoints and Android.

License: Apache License 2.0

Java 100.00%

appengine-endpoints-tictactoe-android's Introduction

appengine-endpoints-tictactoe-android

This application implements a simple client for a Tic Tac Toe game using Google Cloud Endpoints, App Engine, Java, and Android.

NOTE: This sample was written with a Java backend in mind. As a result, the generated code will differ slightly than that for the Python Tic Tac Toe sample. For the most part this will be immaterial to the sample, but there are a few key differences:

  • The generated schema names in the discovery document are different in Python than in Java, even though the hold the same data. This will cause the generated classes corresponding to the schema to have different names.
  • Python supports enums and uses 'WHEN' and 'TEXT' for the order field in queries, while Java simply uses "1" and "2", respectively.
  • The Python backend stores the current user for authenticated requests, but does not return the user in the score insert response or score list response.

Products

Language

APIs

Setup Instructions

  1. Open the project in Android Studio.
  2. Update the value of DEFAULT_ROOT_URL in src/com/appspot/api/services/tictactoe/Tictactoe.java to point to the location where you are hosting a Tic Tac Toe backend (based off of the Java backend example).
  3. Update the value of AUDIENCE in src/com/google/devrel/samples/ttt/ClientCredentials.java, replacing the string "your_web_client_id" with the web application client ID you registered in the APIs Console.
  4. Run the application.

appengine-endpoints-tictactoe-android's People

Contributors

danholevoet avatar dhermes avatar lesv avatar oalami avatar

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.