From 4b6859df36d95823b5d273911c1bcc1bfec62e22 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Wed, 19 Feb 2020 18:31:13 +0100 Subject: [PATCH] --- Home---Welcome.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Home---Welcome.md diff --git a/Home---Welcome.md b/Home---Welcome.md new file mode 100644 index 0000000..72ee7c0 --- /dev/null +++ b/Home---Welcome.md @@ -0,0 +1,34 @@ +Welcome to Rock Paper Scissors. + +This game is quite simple. Proceed to the installation page for more instructions. + + +# Game Mechanics + +The code is written to support several Game Objects (GOs) that interact with each other in a way that resembles Rock Paper Scissors. +Right now, three GOs are available to play Rock Paper Scissors. + + +The main program file is a series of loops that keep the game running. + +## Game Rules - Score Calculation +The score calculation system is rather simple; Each player starts out with 20 points. + +Each loss deducts x points from the player; The current game multiplier (hardcoded to 2) is multiplier by 6 and then it's result is subtracted from your score: + +``` score - (multiplier * 6) ``` + +Each win, your score is multiplied by the current multiplier: ``` score * multiplier ```. + + +After 1000 positive points you start getting more lives. + +Too long with negative points, you start losing lives. + + +The game ends when any of the players' lives reaches 0. + + +# Computer Choices + +The CPU plays in a purely random fashion; It uses a random number using PHP's ```mt_rand()``` function, that uses ```CryptGenRandom()``` from the Windows API or ```/dev/urandom``` for some Linux systems. \ No newline at end of file