From cbc1e22d966a622ff0d5b4a89a7c28634f80c331 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 25 Nov 2021 14:17:37 +0100 Subject: [PATCH] Add some more scripts --- Docs/VoiceControl.md | 2 +- Scripts/play-cube-game.ps1 | 15 +++++++++++++++ Scripts/play-pac-man-game.ps1 | 15 +++++++++++++++ Scripts/play-tic-tac-toe-game.ps1 | 15 +++++++++++++++ Scripts/play-tower-game.ps1 | 15 +++++++++++++++ 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 Scripts/play-cube-game.ps1 create mode 100644 Scripts/play-pac-man-game.ps1 create mode 100644 Scripts/play-tic-tac-toe-game.ps1 create mode 100644 Scripts/play-tower-game.ps1 diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index 4b9ed8a1..ef50bbd8 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -76,7 +76,7 @@ Computer, play `name` sound Computer, play `name` game -------------------------- * launches the default Web browser and plays the given game. -* replace `name`: by "2048", or "Tetris". +* replace `name`: by "2048", "Cube", "Pacman", "Tetris", "TicTacToe", or "Tower". Computer, open `name` settings diff --git a/Scripts/play-cube-game.ps1 b/Scripts/play-cube-game.ps1 new file mode 100644 index 00000000..e8d8cb3e --- /dev/null +++ b/Scripts/play-cube-game.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays the Cube game +.DESCRIPTION + This script launches the Web browser with the Cube game. +.EXAMPLE + PS> ./play-cube-game +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-default-browser.ps1" "https://bsehovac.github.io/the-cube/" +exit 0 # success diff --git a/Scripts/play-pac-man-game.ps1 b/Scripts/play-pac-man-game.ps1 new file mode 100644 index 00000000..6e1bf528 --- /dev/null +++ b/Scripts/play-pac-man-game.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays the Pacman game +.DESCRIPTION + This script launches the Web browser with the Pacman game. +.EXAMPLE + PS> ./play-pac-man-game +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-default-browser.ps1" "https://bobrov.dev/pacman-pwa/index.html" +exit 0 # success diff --git a/Scripts/play-tic-tac-toe-game.ps1 b/Scripts/play-tic-tac-toe-game.ps1 new file mode 100644 index 00000000..c5df97b4 --- /dev/null +++ b/Scripts/play-tic-tac-toe-game.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays the TicTacToe game +.DESCRIPTION + This script launches the Web browser with the TicTacToe game. +.EXAMPLE + PS> ./play-tic-tac-toe-game +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-default-browser.ps1" "https://tmaiadev-tictactoe.netlify.app/" +exit 0 # success diff --git a/Scripts/play-tower-game.ps1 b/Scripts/play-tower-game.ps1 new file mode 100644 index 00000000..b45bd492 --- /dev/null +++ b/Scripts/play-tower-game.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays the Tower game +.DESCRIPTION + This script launches the Web browser with the Tower game. +.EXAMPLE + PS> ./play-tower-game +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-default-browser.ps1" "https://www.towergame.app/" +exit 0 # success