Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.91 KB

README.md

File metadata and controls

23 lines (13 loc) · 1.91 KB

Hack Together: Microsoft Graph and .NET

Hack Together: Microsoft Graph and .NET

hacktogether

Graph TicTacToe

Simple mobile app to play tic tac toe with colleagues. We use AAD app to login to a tenant. Once we're in, You can create new game which will create a game file in root site collection in document library in TicTacToe folder. Game state is represented as a json file. When user makes a move our app updates the state and the file, opponent is pooling for updates on specific documents and once it detects the file has changed it updates app state.We are using graph endpoints to upload, modify and download game state file. When user awaits opponent move, we send a request each second to graph api to get etag for a file and compare it with file metadata already stored in app memory, once etag changes (opponent made a move) we update local state and stop pooling.

Images of the app:

Simulator Screen Shot - iPhone 14 Pro - 2023-03-15 at 18 40 27 Simulator Screen Shot - iPhone 14 Pro - 2023-03-15 at 18 40 52 Simulator Screen Shot - iPhone 14 Pro - 2023-03-15 at 18 41 26 Simulator Screen Shot - iPhone 14 Pro - 2023-03-15 at 18 42 48

Short demo video:

Screen.Recording.2023-03-16.at.16.57.36.mov