-
Notifications
You must be signed in to change notification settings - Fork 5
Dev #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zcrozier
wants to merge
11
commits into
turn-based:master
Choose a base branch
from
casualbrooks:dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #8
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
386e415
start of catverse added to examples
casualbrooks c4d31e4
adds assets folders
casualbrooks 4050876
SFX added (1)
zcrozier bba9164
SFX Added (2)
zcrozier 5fe9d6f
Added Back of card sprite
zcrozier ffae5c2
MagicCardFrontTest
zcrozier fb566ea
Added cards
zcrozier 2b35ba2
Added 3 client cards
zcrozier db60c24
Added last 3 client cards
zcrozier 049bfa6
fixes naming in components
casualbrooks e9f7a82
current ms status page
casualbrooks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| <html><head> | ||
| <meta charset="utf-8"> | ||
| <meta name="internalDateTime" content=""> | ||
| <title>Microsoft 365 Service health status</title> | ||
| <link href="/style/app.css" rel="stylesheet" type="text/css"> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <div id="title"> | ||
| <span> | ||
| <img alt="Microsoft Logo" src="/img/ebs-microsoft-logo.png"> | ||
| </span> | ||
| </div> | ||
| </header> | ||
|
|
||
| <section> | ||
| <div id="content"> | ||
| <div class="contentDiv"> | ||
| <h1>Microsoft 365 Service health status</h1> | ||
| <div> | ||
| <p></p> | ||
| <p></p> | ||
| <hr> | ||
| <p class="contentText"> | ||
|
|
||
| <span id="message">Title: Can't access Microsoft 365 services | ||
|
|
||
| User Impact: Users may be unable to access multiple Microsoft 365 services. | ||
|
|
||
| More info: Users would be unable to access Outlook.com, Microsoft Teams including Teams Live Events, and Office.com. Additionally, Power Platform and Dynamics365 properties are affected by this incident. | ||
|
|
||
| Existing customer sessions are not impacted and any user who is logged in to an existing session would be able to continue their sessions. | ||
|
|
||
| Current status: We've identified that reverting the recent change did not alleviate impact to Microsoft services as expected. We're working to explore additional options for mitigation. | ||
|
|
||
| Scope of impact: Any user may experience access problems for Microsoft 365 services.</span> | ||
| <br><br> | ||
| <a href="https://portal.office.com/adminportal/home#/servicehealth">View your Microsoft 365 Service health</a>. | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <footer> | ||
| <div id="favorite"> | ||
| <a href="javascript:window.external.AddFavorite(location.href, document.title);">Add this page to your favorites</a> | ||
| </div> | ||
| <div id="footer"> | ||
| <div id="footerWrapper"> | ||
| <span id="leftFooterSpan"> | ||
| <span id="microsoftCopyright">©2019 Microsoft Corporation</span> | ||
| <a id="legalLink" href="https://go.microsoft.com/fwlink/?linkid=246338" target="_blank">Legal</a> | ||
| <span class="separator" id="leftSeparator">|</span> | ||
| <a id="privacyLink" href="https://go.microsoft.com/fwlink/?LinkId=521839 " target="_blank">Privacy</a> | ||
| </span> | ||
| <span style="float:right; padding-right:8px;"> | ||
| <a id="communityLink" href="https://techcommunity.microsoft.com/t5/Office-365/ct-p/Office365" target="_blank">Community</a> | ||
| <span class="separator" id="rightSeparator">|</span> | ||
| <a id="feedbackLink" href="https://office365.uservoice.com/" target="_blank">Feedback</a> | ||
| </span> | ||
| </div> | ||
| </div> | ||
| </footer> | ||
|
|
||
| </body></html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+206 KB
projects/demo/src/app/examples/catverse/assets/audio/PlacingCatPieceOnCard.wav
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| place audio here |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+244 KB
...mo/src/app/examples/catverse/assets/images/CardExports/ClientClownManExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+254 KB
.../src/app/examples/catverse/assets/images/CardExports/ClientMonsterManExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+247 KB
.../src/app/examples/catverse/assets/images/CardExports/ClientSpiderLadyExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+305 KB
...s/demo/src/app/examples/catverse/assets/images/CardExports/ClientVampExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+328 KB
...o/src/app/examples/catverse/assets/images/CardExports/ClientWitchLadyExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+322 KB
...o/src/app/examples/catverse/assets/images/CardExports/ClientWizardManExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+258 KB
projects/demo/src/app/examples/catverse/assets/images/CardExports/ClownExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+253 KB
projects/demo/src/app/examples/catverse/assets/images/CardExports/DemonExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+228 KB
...demo/src/app/examples/catverse/assets/images/CardExports/FrankensteinExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+239 KB
projects/demo/src/app/examples/catverse/assets/images/CardExports/ReaperExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+230 KB
projects/demo/src/app/examples/catverse/assets/images/CardExports/SpiderExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+214 KB
...ects/demo/src/app/examples/catverse/assets/images/CardExports/VampireExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+269 KB
projects/demo/src/app/examples/catverse/assets/images/CardExports/WitchExport.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+320 KB
projects/demo/src/app/examples/catverse/assets/images/MagicTemplate4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
projects/demo/src/app/examples/catverse/assets/images/images.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| place images here |
59 changes: 59 additions & 0 deletions
59
projects/demo/src/app/examples/catverse/board.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| import { Component, Inject, NgModule } from '@angular/core'; | ||
| import { CommonModule } from '@angular/common'; | ||
| import { BoardBase, BoardConfig, OBSERVABLE_BOARD_CONFIG } from 'boardgame.io-angular'; | ||
| import { Observable } from 'rxjs'; | ||
|
|
||
| @Component({ | ||
| styleUrls: ['../../../../../../boardgame.io/examples/react-web/src/tic-tac-toe/board.css'], | ||
| template: ` | ||
| <div> | ||
| <table id="board" *ngIf="G"> | ||
| <tbody> | ||
| <tr *ngFor="let i of [0, 1, 2]"> | ||
| <ng-container *ngFor="let j of [0, 1, 2]"> | ||
| <ng-container *ngIf="{id: 3 * i + j}; let stupidAngular"> | ||
| <td [class.active]="isActive && G.cells[stupidAngular.id] === null" | ||
| (click)="onClick(stupidAngular.id)"> | ||
| {{G.cells[stupidAngular.id]}} | ||
| </td> | ||
| </ng-container> | ||
| </ng-container> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| <div *ngIf="!isPreview && playerID" id="player">Player: {{playerID}}</div> | ||
| <ng-container *ngIf="ctx && ctx.gameover"> | ||
| <div *ngIf="ctx.gameover.winner !== undefined; else draw" id="winner">Winner: {{ctx.gameover.winner}}</div> | ||
| <ng-template #draw> | ||
| <div id="winner">Draw!</div> | ||
| </ng-template> | ||
| </ng-container> | ||
| <div *ngIf="!isPreview && isMultiplayer && !isConnected">Disconnected!</div> | ||
| </div> | ||
| `, | ||
| }) | ||
| class BoardComponent extends BoardBase { | ||
| constructor(@Inject(OBSERVABLE_BOARD_CONFIG) observableBoardConfig: Observable<BoardConfig>) { | ||
| super(observableBoardConfig); | ||
| } | ||
|
|
||
| onClick(id: number) { | ||
| if (this.isActive && this.G.cells[id] === null) { | ||
| this.moves.clickCell(id); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @NgModule({ | ||
| declarations: [ | ||
| BoardComponent, | ||
| ], | ||
| imports: [ | ||
| CommonModule, | ||
| ], | ||
| }) | ||
| export class StupidUselessNeededModule { | ||
| // issue tracked by https://github.com/angular/angular/issues/33507 | ||
| } | ||
|
|
||
| export { BoardComponent }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| function IsVictory(cells) { | ||
| const positions = [ | ||
| [0, 1, 2], | ||
| [3, 4, 5], | ||
| [6, 7, 8], | ||
| [0, 3, 6], | ||
| [1, 4, 7], | ||
| [2, 5, 8], | ||
| [0, 4, 8], | ||
| [2, 4, 6], | ||
| ]; | ||
|
|
||
| for (let pos of positions) { | ||
| const symbol = cells[pos[0]]; | ||
| let winner = symbol; | ||
| for (let i of pos) { | ||
| if (cells[i] !== symbol) { | ||
| winner = null; | ||
| break; | ||
| } | ||
| } | ||
| if (winner != null) return true; | ||
| } | ||
|
|
||
| return false; | ||
| } | ||
|
|
||
| const Catverse = { | ||
| name: 'catverse', | ||
|
|
||
| setup: () => ({ | ||
| cells: Array(9).fill(null), | ||
| }), | ||
|
|
||
| moves: { | ||
| clickCell(G, ctx, id) { | ||
| const cells = [...G.cells]; | ||
|
|
||
| if (cells[id] === null) { | ||
| cells[id] = ctx.currentPlayer; | ||
| return { ...G, cells }; | ||
| } | ||
| }, | ||
| }, | ||
|
|
||
| turn: { | ||
| moveLimit: 1, | ||
| }, | ||
|
|
||
| endIf: (G, ctx) => { | ||
| if (IsVictory(G.cells)) { | ||
| return { winner: ctx.currentPlayer }; | ||
| } | ||
| if (G.cells.filter(c => c === null).length === 0) { | ||
| return { draw: true }; | ||
| } | ||
| }, | ||
| }; | ||
|
|
||
| export default Catverse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /* tslint:disable:object-literal-key-quotes */ | ||
|
|
||
| import { SingleplayerComponent } from './singleplayer.component'; | ||
| import { MultiplayerComponent } from './multiplayer.component'; | ||
|
|
||
| export default [ | ||
| SingleplayerComponent, | ||
| MultiplayerComponent, | ||
| ]; |
45 changes: 45 additions & 0 deletions
45
projects/demo/src/app/examples/catverse/multiplayer.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import { Component, NgModule } from '@angular/core'; | ||
| import { BoardgameIoModule, GameScope } from 'boardgame.io-angular'; | ||
| import { BoardComponent } from './board.component'; | ||
|
|
||
| import { Local } from 'boardgame.io/multiplayer'; | ||
| // @ts-ignore | ||
| import game from './game.js'; | ||
|
|
||
| @Component({ | ||
| template: ` | ||
| <div class="runner"> | ||
| <div class="run"> | ||
| <bio-client gameID="multi" playerID="0"></bio-client> | ||
| <App playerID="0"/> | ||
| </div> | ||
| <div class="run"> | ||
| <bio-client gameID="multi" playerID="1"></bio-client> | ||
| <App playerID="1"/> | ||
| </div> | ||
| </div> | ||
| `, | ||
| providers: [{ | ||
| provide: GameScope, useValue: GameScope.fromConfig({ | ||
| game, | ||
| board: BoardComponent, | ||
| debug: false, | ||
| multiplayer: Local(), | ||
| }) | ||
| }], | ||
| }) | ||
| export class MultiplayerComponent { | ||
| static readonly sectionId = 'catverse'; | ||
| static readonly exampleName = 'Multiplayer'; | ||
| } | ||
|
|
||
| @NgModule({ | ||
| declarations: [ | ||
| MultiplayerComponent, | ||
| ], | ||
| imports: [ | ||
| BoardgameIoModule, | ||
| ], | ||
| }) | ||
| export class UselessExamplesModule { | ||
| } |
33 changes: 33 additions & 0 deletions
33
projects/demo/src/app/examples/catverse/singleplayer.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { Component, NgModule } from '@angular/core'; | ||
| import { BoardgameIoModule } from 'boardgame.io-angular'; | ||
| import { BoardComponent } from './board.component'; | ||
| import { Debug } from 'boardgame.io/debug'; | ||
| // @ts-ignore | ||
| import game from '../../../../../../boardgame.io/examples/react-web/src/tic-tac-toe/game.js'; | ||
|
|
||
| @Component({ | ||
| template: ` | ||
| <bio-client gameID="single" [bioGameConfig]="gameConfig"></bio-client> | ||
| `, | ||
| }) | ||
| export class SingleplayerComponent { | ||
| static readonly sectionId = 'catverse'; | ||
| static readonly exampleName = 'Singleplayer'; | ||
|
|
||
| gameConfig = { | ||
| game, | ||
| board: BoardComponent, | ||
| debug: { impl: Debug }, | ||
| }; | ||
| } | ||
|
|
||
| @NgModule({ | ||
| declarations: [ | ||
| SingleplayerComponent, | ||
| ], | ||
| imports: [ | ||
| BoardgameIoModule, | ||
| ], | ||
| }) | ||
| export class UselessExamplesModule { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this one, the lib is built locally via
npm run build:lib:prod