UNPKG

@ng-casino/rock-paper-scissors

Version:

Angular component to play a game of Rock, Paper, Scissors

34 lines (33 loc) 1.03 kB
import { EventEmitter } from '@angular/core'; import { RockPaperScissorsChoice, RockPaperScissorsResult } from './rock-paper-scissors.enums'; export declare class RockPaperScissorsComponent { startText?: string; wonText?: string; lostText?: string; drawText?: string; tryAgainText?: string; images?: { rock: string; paper: string; scissors: string; }; onPlaying: EventEmitter<boolean>; onGameResult: EventEmitter<RockPaperScissorsResult>; readonly gameChoice: typeof RockPaperScissorsChoice; readonly gameOutcome: typeof RockPaperScissorsResult; readonly gameImages: { rock: string; paper: string; scissors: string; }; playing: boolean; choice: RockPaperScissorsChoice; opponent: RockPaperScissorsChoice; result: RockPaperScissorsResult; choiceImage: string; opponentImage: string; play(choice: RockPaperScissorsChoice): void; private showResults; private getImage; resetGame(): void; }