You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Set up your app in Firebase console](https://firebase.google.com/docs/cpp/setup?platform=android#desktop-workflow).
34
+
35
+
- Place the google-services.json you just acquired in the demos/TicTacToe/google_services/ directory.
36
+
37
+
- Navigate to the directory that you just cloned, step into demos/TicTacToe/ and run the setup script.
38
+
```
39
+
python setup_demo.py
40
+
```
41
+
42
+
- To debug with Visual Studio 2019, copy the google-services.json file into the tic_tac_toe_demo/build/ directory. Then open the .sln in that same directory in Visual Studio.
43
+
44
+
### How To Play
45
+
46
+
- After you have successfully run the setup_demo.py script, you can then launch the game by running the run_demo.py script. In order to test the multiplayer functionality, open up another terminal and launch a second instant of the game by running the run_demo.py script again.
47
+
```
48
+
python run_demo.py
49
+
```
50
+
51
+
- Using the sign-up button or login button will link your record (Wins-Losses-Ties) to your account. The skip login button will not save your record between sessions.
52
+
53
+
- From the main menu screen, you can either create a game or join using a game code (displayed in the top-left corner of the game board). If you are running this demo yourself, have on instance create the game and join with your second game instance.
54
+
55
+
- After finishing the game, you will notice the record will update on the main menu to reflect the result of your most recent game.
56
+
57
+
Support
58
+
-------
59
+
60
+
https://firebase.google.com/support/
61
+
62
+
License
63
+
-------
64
+
65
+
Copyright 2020 Google, Inc.
66
+
67
+
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
68
+
69
+
http://www.apache.org/licenses/LICENSE-2.0
70
+
71
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License..
0 commit comments