x1ddos / go-tictactoe Goto Github PK
View Code? Open in Web Editor NEWA simple backend for a Tic Tac Toe game using Google Cloud Endpoints, App Engine, and Go
License: Apache License 2.0
A simple backend for a Tic Tac Toe game using Google Cloud Endpoints, App Engine, and Go
License: Apache License 2.0
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://accounts.google.com') does not match the recipient window's origin ('http://localhost:8080').
Only show this error in chrome ubuntu 12.04.
Works perfect in firefox ubuntu 12.04.
Hey ,
I download the example and tried to build it and got error ,
cant find package ...
The import should be replaced to that
"github.com/GoogleCloudPlatform/go-endpoints/endpoints"
randomIdx := r.Intn(freeIdxLen)
runes[randomIdx] = 'O'
but this randomIdx
is an index in the list of freeIndices
so we first need to find our index and then replace it:
runes[freeIndices[randomIdx]] = 'O'
Hi there :)
I've installed the Go Google Appengine ver. 1.9.27 and I'm trying to get your tic-tac-toe demo up and running.
But, I get compile problems regarding endpoints.Context and appengine.Context (see below)
I'm new to both Go, Google App Engine and Google Endpoints :)
Do you know what I need to change to get it to work?
Cheers,
Jesper
ERROR 2015-10-27 17:15:32,951 go_runtime.py:179] Failed to build Go application: (Executed command: c:\work\go_appengine\goroot\bin\go-app-builder.exe -app_base C:\Work\gae-go-test\app -arch 6 -dynamic -goroot c:\work\go_appengine\goroot -nobuild_files ^^$ -unsafe -gopath c:\work\go_appengine\gopath -binary_name _go_app -extra_imports appengine_internal/init -work_dir c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin -gcflags -I,c:\work\go_appengine\goroot\pkg\windows_amd64_appengine -ldflags -L,c:\work\go_appengine\goroot\pkg\windows_amd64_appengine tictactoe\api.go main.go tictactoe\models.go)
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:87: undefined: appengine
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:117: cannot use c (type context.Context) as type "appengine".Context in argument to score.put:
context.Context does not implement "appengine".Context (missing Call method)
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:127: undefined: endpoints.Context
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:136: cannot use u (type *"google.golang.org/appengine/user".User) as type *"appengine/user".User in return argument
I tried to build your app as a Java client and got this error
mik@mik-Aspire-S3:~/go-programs$ URL='https://go-endpoints.appspot.com/tictactoe'
mik@mik-Aspire-S3:~/go-programs$ curl -s $URL > tic_testmik@mik-Aspire-S3:~/go-programs$ $HOME/go_appengine/endpointscfg.py gen_client_lib java tic_test
Traceback (most recent call last):
File "/home/mik/go_appengine/endpointscfg.py", line 133, in <module>
run_file(__file__, globals())
File "/home/mik/go_appengine/endpointscfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 561, in <module>
main(sys.argv)
File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 557, in main
args.callback(args)
File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 458, in _GenClientLibCallback
args.build_system)
File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 335, in _GenClientLib
build_system, client_name)
File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 366, in _GenClientLibFromContents
raise ServerRequestException(error)
__main__.ServerRequestException: HTTP 400 (Bad Request) error when communicating with URL: https://google-api-client-libraries.appspot.com/generate. Details: ill-formed JSON: No JSON object could be decoded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.