A wonderful opportunity to beat a computer at chess!
Play against a friend, a totally random AI, or wager money as it plays against itself. I'm sure there are still bugs in here but hey, happy new year.
This pen is a reverse engineered (and slightly modified) version of the pen by Toshiya Marukubo ( @toshiya-marukubo ):
https://codepen.io/toshiya-marukubo/pen/mdRzyQz
I wanted to see how it worked and I figured I'd share :)
| import { Injectable } from '@angular/core'; | |
| import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; | |
| import { KeycloakService, KeycloakAuthGuard } from 'keycloak-angular'; | |
| @Injectable() | |
| export class AppAuthGuard extends KeycloakAuthGuard { | |
| constructor(protected router: Router, protected keycloakAngular: KeycloakService) { | |
| super(router, keycloakAngular); | |
| } |
| <div id="app" class="start" data-state="START"> | |
| <nav class="ui-nav"> | |
| <div class="ui-nav-buttons"> | |
| <div class="ui-icon -menu"></div> | |
| <div class="ui-icon -search"></div> | |
| </div> | |
| <ul class="ui-nav-items"> | |
| <li class="ui-nav-item" data-key="1"> | |
| <div class="ui-nav-item-title"> | |
| <span>Highlights</span> |
| <h1>// Scanning your memories...</h1> |